lib/processing/window.rb in processing-0.5.17 vs lib/processing/window.rb in processing-0.5.18
- old
+ new
@@ -6,11 +6,11 @@
include Xot::Inspectable
attr_accessor :setup, :update, :draw,
:key_down, :key_up,
- :pointer_down, :pointer_up, :pointer_move, :pointer_drag,
+ :pointer_down, :pointer_up, :pointer_move,
:move, :resize, :motion,
:before_draw, :after_draw, :update_canvas
attr_accessor :auto_resize
@@ -115,10 +115,10 @@
def on_canvas_pointer(e)
block = case e.action
when :down then @pointer_down
when :up, :cancel then @pointer_up
- when :move then e.drag? ? @pointer_drag : @pointer_move
+ when :move then @pointer_move
end
draw_canvas {call_block block, e} if block
end
def on_canvas_resize(e)