jQuery UI Widgets Forums DataTable Bug on touch device with mouse support

This topic contains 1 reply, has 2 voices, and was last updated by  Hristo 6 years, 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • alexurucu

    I have a laptop with touchscreen but i mainly use mouse and keyboard.

    The problem is that jqxDataTable does not trigger the rowClick event for mouse down events.

    In jqxdatatable.js at line 3561 you have this logic:
    var eventname = ‘mousedown’;
    if (this.isTouchDevice()) {
    eventname = $.jqx.mobile.getTouchEventName(‘touchend’);
    if ($.jqx.browser.msie && $.jqx.browser.version < 10) {
    eventname = ‘mousedown’;
    that you use further in line 3721 where you set the event handler.

    You can just add the event on ‘mousedown touchend’ and remove the upper logic and it will work in all cases.

    I think you do this (add event-handlers only for touch events and not for mouse events) in more places. Just search for “eventname”

    Bug on touch device with mouse support #99888


    Hello alexurucu,

    Please avoid posting code from our sources this violating the EULA.
    I tested this example and it seems to work fine (laptop with touch-):

    Best Regards,
    Hristo Hristov

    jQWidgets team

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

You must be logged in to reply to this topic.