Class: Hokusai::MouseUpEvent

Inherits:
MouseEvent show all
Defined in:
ui/src/hokusai/events/mouse.rb

Instance Attribute Summary

Attributes inherited from MouseEvent

#input, #state

Attributes inherited from Event

#bubbles, #captures, #stopped

Instance Method Summary collapse

Methods inherited from MouseEvent

#delta, #initialize, #left, #middle, #mouse, #pos, #right, #scroll, #scroll_delta, #to_json

Methods inherited from Event

#bubble, #matches, name, #name, #stop, #to_json

Constructor Details

This class inherits a constructor from Hokusai::MouseEvent

Instance Method Details

#capture(block, _) ⇒ Object



107
108
109
110
111
# File 'ui/src/hokusai/events/mouse.rb', line 107

def capture(block, _)
  if left[:up] && matches(block)
    captures << block
  end
end