mirror of
https://github.com/scratchfoundation/Gestouch.git
synced 2024-11-27 01:35:40 -05:00
Minor fix for Gesture state machine
to dispatch STATE_CHANGE even when cycling around CHANGED state
This commit is contained in:
parent
2678e12de8
commit
3acafd1dfb
1 changed files with 6 additions and 0 deletions
|
@ -430,6 +430,12 @@ package org.gestouch.gestures
|
||||||
{
|
{
|
||||||
if (_state == newState && _state == GestureState.CHANGED)
|
if (_state == newState && _state == GestureState.CHANGED)
|
||||||
{
|
{
|
||||||
|
// shortcut for better performance
|
||||||
|
if (hasEventListener(GestureStateEvent.STATE_CHANGE))
|
||||||
|
{
|
||||||
|
dispatchEvent(new GestureStateEvent(GestureStateEvent.STATE_CHANGE, _state, _state));
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue