Class: MINTo::MouseMode

Inherits:
Interactor
  • Object
show all
Defined in:
lib/MINT-core/model/ir/mouse_old.rb

Instance Method Summary collapse

Instance Method Details

#initialize_statemachineObject



5
6
7
8
9
10
11
12
# File 'lib/MINT-core/model/ir/mouse_old.rb', line 5

def initialize_statemachine
  if @statemachine.blank?
    @statemachine = Statemachine.build do
      trans :selecting,:drag, :dragging
      trans :dragging, :select, :selecting
    end
  end
end