mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 04:57:07 -04:00
Avoid default behavior
This commit is contained in:
parent
616dade81c
commit
9c204d9bbe
1 changed files with 1 additions and 0 deletions
|
@ -136,6 +136,7 @@ Utils = {
|
|||
});
|
||||
$(document).on('touchend', selector, function(e) {
|
||||
if (touchStart && lastTouch && Utils.calculateTouchDistance(touchStart, lastTouch) <= 20) {
|
||||
e.preventDefault();
|
||||
const clickEvent = document.createEvent('MouseEvents');
|
||||
clickEvent.initEvent('click', true, true);
|
||||
e.target.dispatchEvent(clickEvent);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue