drag + zoom in LensWindowManager

Johan Vos johan at lodgon.com
Fri Aug 8 13:04:17 UTC 2014

I have an issue with zoom gestures on Android.
My UI listens for drag events to drag a node, and we also listen to zoom
events to zoom.

Zoom gestures are generated by dragging 2 fingers on the touch screen.
When the user pushes the second finger on the touch screen, for initiating
the zoom gesture, a drag event is generated.
In LensWindowManager.c a call to lens_wm_notifyMultiTouchEvent is made, and
the primaryPointIndex is passed. When the first finger is pushed, the index
is 0 and when the second finger is pushed, the index is 1.
This is twice detected as a TOUCH_PRESSED event. The first event will cause
the onDraggingAction to be set to true, and the second event is then
considered a DragEvent.

There are a number of ways to fix this, but I'm wondering if it is still
worth doing this (or rather jump to monocle right now)...
Does anyone circumvented this on other platforms?

- Johan

More information about the openjfx-dev mailing list