You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is issue in gesture module after last commit.
Two finger gesture state not properly clears.
Problem:
ifaction.touchthenifsettings.multi_touchthenif#action.touch==2thenlocalt1=action.touch[1]
localt2=action.touch[2]
ifcurrent_touch_count<2thenmulti_states[t1.id] =create_touch_state()
multi_states[t2.id] =create_touch_state()
t1.pressed=truet2.pressed=trueendhandle_multi_touch(t1, t2) -- gesture state clears hereendcurrent_touch_count=#action.touch-- but if we get a multi-touch with one finger, it will not be cleared here-- the state will be saved from the previous two-finger gesturereturngesturesendend
Possible solution:
ifaction.touchthenifsettings.multi_touchthenlocalwas_handled=false-- save if multi touch gesture was handledif#action.touch==2thenlocalt1=action.touch[1]
localt2=action.touch[2]
ifcurrent_touch_count<2thenmulti_states[t1.id] =create_touch_state()
multi_states[t2.id] =create_touch_state()
t1.pressed=truet2.pressed=trueendwas_handled=true-- gesture was handledhandle_multi_touch(t1, t2)
endcurrent_touch_count=#action.touchifnotwas_handledthen-- if not we manually clear gesture stateclear_gesture_state()
endreturngesturesendend
The text was updated successfully, but these errors were encountered:
There is issue in gesture module after last commit.
Two finger gesture state not properly clears.
Problem:
Possible solution:
The text was updated successfully, but these errors were encountered: