Class: Hokusai::WheelEvent
- Inherits:
-
MouseEvent
- Object
- Event
- MouseEvent
- Hokusai::WheelEvent
- Defined in:
- ui/src/hokusai/events/mouse.rb
Instance Attribute Summary
Attributes inherited from MouseEvent
Attributes inherited from Event
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
127 128 129 130 131 |
# File 'ui/src/hokusai/events/mouse.rb', line 127 def capture(block, _) if matches(block) && scroll_delta != 0.0 captures << block end end |