This is a migrated thread and some comments may be shown as answers.

Button click with a little movement does not fire click event

1 Answer 70 Views
Button (Mobile)
This is a migrated thread and some comments may be shown as answers.
Kerry
Top achievements
Rank 1
Kerry asked on 05 Jun 2014, 07:41 PM
Is there a way to make a button receive a click event when the user moves a little bit during the click?

On mobile devices I have found many users will move their finger a little bit when clicking on a button.  In Kendo UI Mobile if movement occurs during the click the click event is not fired.  To see this happen, run the following plunkr:

http://plnkr.co/edit/foJjBq87ou6mFSdLEq4k?p=preview

When clicking drag just a little bit and the click event will not fire.  Only when you click with no movement will the click event fire.

I would like an event something like "touch up inside" which would fire when the user lifts their finger from a button.  

Thanks,
Kerry

1 Answer, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 09 Jun 2014, 07:33 AM
Hi Kerry,

Detecting a "touch up inside" is quite complicated. Unlike the mouse events, the touch events always report the originating element as the current event target; there is no equivalent of mouseleave. 

In the internals of Kendo UI we have a setting which controls the button sensitivity to movement, but it is currently private and can't be set from the user code. However, this sounds like a sensible feature, so I have logged it for our next iteration. 

Regards,
Petyo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Button (Mobile)
Asked by
Kerry
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Share this question
or