Touch Actions in 2.9

Discuss issues and ideas you have to configuring displays with PowerVision
nms
Posts: 14
Joined: Tue Jul 25, 2017 8:01 am

Touch Actions in 2.9

Post by nms » Wed Oct 25, 2017 2:27 am

Hello,

I'd like to press and hold a container widget for 3 seconds and page will change to a different view. I've tried many things (timers, different combinations of touch actions etc.) but couldn't manage to do it.

Three seconds is important to make sure that user wants to do that action. Not touching the screen by accident.

Any help is appreciated,

Thanks
boyce
Enovation Controls Development
Enovation Controls Development
Posts: 322
Joined: Wed Sep 08, 2010 5:09 pm

Re: Touch Actions in 2.9

Post by boyce » Wed Oct 25, 2017 10:37 am

You can try something like this state machine:
3secondtouch1.JPG
3secondtouch1.JPG (127.29 KiB) Viewed 90 times
3secondtouch2.JPG
3secondtouch2.JPG (131.69 KiB) Viewed 90 times
3secondtouch3.JPG
3secondtouch3.JPG (135.79 KiB) Viewed 90 times
3secondtouch4.JPG
3secondtouch4.JPG (129.38 KiB) Viewed 90 times
3secondtouch5.JPG
3secondtouch5.JPG (135.12 KiB) Viewed 90 times
I tried it on the newer M2 color display and it works a little different. The button press will time out and send the touch release event after about 5 seconds.
DEMO - 3 second touch.zip
(767.61 KiB) Downloaded 10 times
Boyce Schrack
Enovation Controls
boyce
Enovation Controls Development
Enovation Controls Development
Posts: 322
Joined: Wed Sep 08, 2010 5:09 pm

Re: Touch Actions in 2.9

Post by boyce » Wed Oct 25, 2017 3:19 pm

Added some color in the configuration.
DEMO - 3 second touch in color.zip
(768.41 KiB) Downloaded 21 times
Boyce Schrack
Enovation Controls
nms
Posts: 14
Joined: Tue Jul 25, 2017 8:01 am

Re: Touch Actions in 2.9

Post by nms » Thu Oct 26, 2017 6:17 am

Thanks Boyce,

Exactly what I was looking for.