NativeScript
NativeScript copied to clipboard
Cannot attach gesture observer for more than one gesture (Android).
fixed with commit #239
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).
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.