Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    How to detect long press

    Hi,

    I am trying to differentiate between a click, a long press and a click drag since I need to handle each differently.
    The way it seems to work for me is using three different event handlers MouseDownHandler, MouseUpHandler
    and MouseMoveHandler. And using the google Timer to tell if it's a long press.

    Is this the way to do it or is there a better way?

    I am using SmartGWT Pro v5.0p (SmartClient Version: v10.0p_2015-04-03/Pro Deployment (built 2015-04-03))
    Last edited by bc; 25 Sep 2015, 04:59.
Working...
X