onPointerMove action, pen or touch

Hello everyone,

I'm working with a pan tool for Perspective views, and using the onPointerMove action along with event.movementX and event.movementY.

This works fine with mouse, but when moving to tablet using touch its not working as smooth anymore. The movement is slower, this I can adjust in my script checking event.pointerType - but it also limits the length of the movement. I have to grab and drag many times to move the same amount of pixels as with the mouse.

Is this a known issue, and is there any workarounds?

Thanks in advance.

Is this a 3rd-party module? If so, you may want to ask the author for help.

Otherwise:

This is always going to perform poorly, as every event notification has to make a round trip to the gateway. (Perspective event scripts do not run in the browser.)

Hi Turmel, thanks for replying.

I'm using Perspective-components only. When grabbing with a mouse pointer I can move back and forth in all directions with no issues. The view follows my movement all the way.

Pressing F12 and entering developer mode and touch type changes it all. When dragging in one direction it stops after a short movement. Also, the speed is affected. if pointerType != "mouse" i'm multiplying the movement to get better response.

I tested on my android phone, and its the same there.