Skip to content

Commit

Permalink
[BUG](yoannmoinet#151): Give touch events more priority then pointer …
Browse files Browse the repository at this point in the history
…events
  • Loading branch information
caiiiycuk committed Sep 29, 2020
1 parent 5717293 commit 6266f35
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/super.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ var events = {
};
var toBind;
var secondBind = {};
if (isPointer) {
if (isTouch) {
toBind = events.touch;
secondBind = events.mouse;
} else if (isPointer) {
toBind = events.pointer;
} else if (isMSPointer) {
toBind = events.MSPointer;
} else if (isTouch) {
toBind = events.touch;
secondBind = events.mouse;
} else {
toBind = events.mouse;
}
Expand Down

0 comments on commit 6266f35

Please sign in to comment.