Disable Panning

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
4 posts • Page 1 of 1
Lars
Posts:5
Joined: Fri Jan 20, 2017 10:32 am

Disable Panning

Post by Lars »

Since I use WinCC OA 3.15 Panning on Objects with clicked event is also possible.
Now I have the problem that every time I want to use Drag&Drop functionality it does not work because panning is used.

In the online help there is a simple script to help:
main()
{
panningMode(FALSE);
}

I put this script on several Initialevents but it does not matter where, panning stays activated.

What do I wish ? :
To disable a whole Panel for panning is not what I want. I would like specific objects not to use panning and use Drag&Drop instead.
I only use a touch screen (no mouse).

Thanks for your help in advance. :-)

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: Disable Panning

Post by mkoller »

Press and hold longer than 200ms before moving your finger.
As long as the panel is larger than the viewport, panning is always started via touch when you move the finger before
the 200ms timeout.

Lars
Posts:5
Joined: Fri Jan 20, 2017 10:32 am

Re: Disable Panning

Post by Lars »

Thanks for the really fast answer!

I am not really satisfied with this solution because the usability was much better before.

What about the function panningMode(FALSE) ?
Does this function never work when touch is used ?

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: Disable Panning

Post by mkoller »

This function sets the panel to a state for mouse interaction, which is either: mouse is used to pan the panel or mouse is used to click/activate objects.
(See also trackZoomMode)
Touch handling does not use this state but always allows to pan the panel when it is larger than the viewport.

4 posts • Page 1 of 1