Class: Hokusai::MouseMoveEvent

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



77
78
79
80
81
# File 'ui/src/hokusai/events/mouse.rb', line 77

def capture(block, _)
  if matches(block) #&& (delta.y != 0.0000000000 && delta.x != 0.0000000000)
    captures << block
  end
end