Skip to content

Commit

Permalink
feat: change touch and mouse events to touchstart and mousedown
Browse files Browse the repository at this point in the history
  • Loading branch information
chaotixkilla committed May 26, 2022
1 parent 4427a9a commit fdacfdb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions ui/js/app.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ui/js/app.js.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions ui/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -983,9 +983,9 @@ function touchEvent (element, callback) {
}

if (shouldEnableTouch()) {
element.addEventListener('touchend', handler)
element.addEventListener('touchstart', handler)
}
element.addEventListener('mouseup', handler)
element.addEventListener('mousedown', handler)
}

function touchImmediateEvent (element, callback) {
Expand All @@ -995,9 +995,9 @@ function touchImmediateEvent (element, callback) {
e.preventDefault()
}
if (shouldEnableTouch()) {
element.addEventListener('touchend', handler)
element.addEventListener('touchstart', handler)
}
element.addEventListener('mouseup', handler)
element.addEventListener('mousedown', handler)
}

function setupImmediateButton (buttonClass, buttonAction, callback) {
Expand Down

0 comments on commit fdacfdb

Please sign in to comment.