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, 5 months ago.

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

  • alexurucu
    Participant

    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

    Hristo
    Participant

    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-):
    http://jsfiddle.net/jqwidgets/aD8Md/

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.