You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In our RAP Application we make heavy use of client scripting to enhance the behavior of specific wigets.
Especially we use the SWT.MouseMove event to implement move or drag like features.
While control.addListener(SWT.MouseMove, clientListener);
works fine on desktop browsers (where you have a mouse),
the event will not trigger on mobile devices, since they use touch input.
This is because the SWT.MouseMove is mapped to the javascript mousemove event, which only triggers on mouse movements, not on touch movements.
Javascript offers two alternatives: The touchmove is only triggered when touching and the pointermove is triggered in both cases.
Is it possible to map the SWT.MouseMove to js pointermove or alternatively implement an additional event for touchmove in order to have a similar experience on touch and mouse devices?
The text was updated successfully, but these errors were encountered:
In our RAP Application we make heavy use of client scripting to enhance the behavior of specific wigets.
Especially we use the SWT.MouseMove event to implement move or drag like features.
While
control.addListener(SWT.MouseMove, clientListener);
works fine on desktop browsers (where you have a mouse),
the event will not trigger on mobile devices, since they use touch input.
This is because the
SWT.MouseMove
is mapped to the javascript mousemove event, which only triggers on mouse movements, not on touch movements.Javascript offers two alternatives: The touchmove is only triggered when touching and the pointermove is triggered in both cases.
Is it possible to map the
SWT.MouseMove
to js pointermove or alternatively implement an additional event for touchmove in order to have a similar experience on touch and mouse devices?The text was updated successfully, but these errors were encountered: