Fwd: Drag and touch gestures

cogmission1 . cognitionmission at gmail.com
Mon Jul 1 05:21:58 PDT 2013


I believe I read something about this recently. I believe the solution has
something to do with setting "mouse transparency" (not absolutely sure of
the method name) on the widget in the touch handlers so that the underlying
drag mechanism can receive the event - then setting transparency false
after the drag event is complete so that touch events are once again
available to the widget after the drop. Make any sense? Maybe someone more
familiar can elaborate on the details, but I believe the solution is very
similar to what I've described.



On Mon, Jul 1, 2013 at 4:34 AM, Hervé Girod <herve.girod at gmail.com> wrote:

> Hello,
> We tried to perform something as in iOS or Android where there is several
> active widgets, which can be selected by touch gestures, or dragged by drag
> gestures.
> However it seems that if we allow these two gestures on the same widget,
> the touch gesture takes precedence and the drag is never detected.
> Is there a way to allow drag AND touch gestures (for simple selections) in
> JavaFX ? We tried this in 2.2.
> Hervé

More information about the openjfx-dev mailing list