Button click with a little movement does not fire click event

2 posts, 0 answers
  1. Kerry
    Kerry avatar
    19 posts
    Member since:
    Jul 2013

    Posted 05 Jun 2014 Link to this post

    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
  2. Petyo
    Admin
    Petyo avatar
    2438 posts

    Posted 09 Jun 2014 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
Back to Top