I am having problems on mobile devices/tablets with the events firing twice. When I click the following function, the menu that is supposed to drop down will drop down then
In most cases the following code will be ok:
$(document).on("touchend click", ".lines-button", function(e){ if(e.type == 'touchend'){ $(this).off('click'); } });
If touchend works, you may get rid of click.
touchend
click