NativeScript icon indicating copy to clipboard operation
NativeScript copied to clipboard

Cannot attach gesture observer for more than one gesture (Android).

Open nsndeck opened this issue 11 years ago • 3 comments

nsndeck avatar May 29 '15 14:05 nsndeck

fixed with commit #239

nsndeck avatar May 29 '15 14:05 nsndeck

Breaking change: Commits #239 and #256 introduces some breaking changes related to gestures.

  1. 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.
  2. 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).
  3. GesturesObserver observe() method now takes only a single parameter - gesture type (other parameters are now passed to the GesturesObserver constructor function).

nsndeck avatar Jun 02 '15 13:06 nsndeck

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.

lock[bot] avatar Aug 31 '19 06:08 lock[bot]