| Module | Limelight::Builtin::Players::StageMover |
| In: |
lib/limelight/builtin/players/stage_mover.rb
|
# File lib/limelight/builtin/players/stage_mover.rb, line 15
15: def mouse_dragged(e)
16: dx = e.x - @drag_reference_x
17: dy = e.y - @drag_reference_y
18:
19: frame = scene.stage.frame
20: location = frame.location
21:
22: location.x += dx
23: location.y += dy
24: frame.location = location
25: end