Hi,

Wicket Extensions' ModalWindow uses wicket-ajax-jquery.js to support
dragging -
https://github.com/apache/wicket/blob/da8d5999f89949e2d38856eb315fcc1712d044f1/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js#L2439

As you can see it depends on "mousedown" JS event (
https://github.com/apache/wicket/blob/da8d5999f89949e2d38856eb315fcc1712d044f1/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js#L2470)
which is not touch-friendly.

One way to workaround this is to monkey-patch Wicket.Drag.xyz methods.

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Wed, Nov 1, 2017 at 10:46 AM, Rakesh A <iamrakes...@rediffmail.com>
wrote:

> Hi,
>
> I am trying to make modal window positioning (by dragging) work on touch
> enabled devices with no luck.
> What I tried is to use JQuery Touch punch, to simulate mouse event for
> touch
> events on devices, but this for some reason doesn't work.
>
> Any pointers how to make this (allow users to position Wicket modal dialogs
> by dragging them on touch devices) work ?
>
> Regards,
> Rakesh.A
>
> --
> Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-
> f1842947.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

Reply via email to