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))
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))