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
{{ message }}
Repository navigation
Cannot attach gesture observer for more than one gesture (Android). #242
Breaking change: Commits #239 and #256 introduces some breaking changes related to gestures.
View.observe() method does not return a gesture observer, but stores an observer into a map collection.
To access this map collection new version introduces a new method called View.getGestureObservers(gestureType) which returns an array of gesture observers attached to the view. Indeed this is a very rare scenario, but it supports more than one observer for a single gesture.
GesturesObserver constructor now takes 3 arguments instead of only a callback. Now arguments are as follows - target (view that will listen for gestures), callback (a function that will be executed when gesture is detected) and a context (the 'this' context for the callback function).
GesturesObserver observe() method now takes only a single parameter - gesture type (other parameters are now passed to the GesturesObserver constructor function).
Activity
nsndeck commentedon May 29, 2015
fixed with commit #239
nsndeck commentedon Jun 2, 2015
Breaking change: Commits #239 and #256 introduces some breaking changes related to gestures.
To access this map collection new version introduces a new method called View.getGestureObservers(gestureType) which returns an array of gesture observers attached to the view. Indeed this is a very rare scenario, but it supports more than one observer for a single gesture.
lock commentedon Aug 31, 2019
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.