Method: Fidgit::Selection#reset_drag
- Defined in:
- lib/fidgit/selection.rb
#reset_drag ⇒ Object
Move all dragged object back to original positions.
70 71 72 73 74 75 76 77 78 79 80 81 |
# File 'lib/fidgit/selection.rb', line 70 def reset_drag if moved? @items.each do |o| o.x += @initial_x - @last_x o.y += @initial_y - @last_y end end self.end_drag self end |