jQWidgets Forums

jQuery UI Widgets Forums Grid CellClick firing when sliding on a mobile

This topic contains 5 replies, has 2 voices, and was last updated by  Peter Stoev 10 years, 9 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • CellClick firing when sliding on a mobile #60056

    pguz
    Participant

    Hi,

    In our mobile app, we render a grid in a web page. That grid is often larger than the screen, so the user scrolls the page using by dragging their finger around the screen. However, when the user lifts his finger, the cellclick event fires.

    Is there a way of detecting a drag rather than a click in this circumstance?

    Paul

    CellClick firing when sliding on a mobile #60059

    Peter Stoev
    Keymaster

    Hi Paul,

    cellclick is raised on tap, drag happens on tap and move on the Grid’s surface. I would suggest you to either use the Grid’s scrollbar for scrolling or use events like cellselect which happens when drag ends.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    CellClick firing when sliding on a mobile #60069

    pguz
    Participant

    Thanks Peter.

    Unfortunately, I can’t use cellselect as I am using singlerow selectionmode.

    I am not using the grid’s own scrollbars as I find them slow on mobile devices with large grids. Web page scrolling is much smoother.

    Regarding your comment “cellclick is raised on tap, drag happens on tap and move” – dragging and tapping are different gestures and I believe that all widgets should differentiate between the two if possible.

    Paul

    CellClick firing when sliding on a mobile #60071

    Peter Stoev
    Keymaster

    Hi Paul,

    If you’re with single row selection mode, then use rowselect. Regarding the gesture – you’re not right. dragging includes tap + hold + moving your finger up, down, left or right.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    CellClick firing when sliding on a mobile #60072

    pguz
    Participant

    Peter,

    I can’t use rowselect as I need to know which column was clicked on. My click event handler is specific to the cell clicked on.

    Re the grestures, I am talking about the conceptual difference between tapping and dragging gestures – the two are different concepts in the world of touch device usage. A tap is a quick press-and-release action. A drag is press-slide-release. It must be possible to detect the latter – e.g. if the user’s finger is in a different position on release, then do not fire the ‘click’ event.

    CellClick firing when sliding on a mobile #60073

    Peter Stoev
    Keymaster

    Thank you for your comments, Paul.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.