wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Grigorov <mgrigo...@apache.org>
Subject Re: Moving modal window in touch devices
Date Wed, 01 Nov 2017 10:15:11 GMT
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 <iamrakesh22@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-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message