Skip to content

Commit

Permalink
fixed eslint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
John Doherty committed Mar 20, 2019
1 parent 69ca0ac commit a179f25
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/long-press-event.js
Expand Up @@ -26,7 +26,7 @@
var scrollEvent = 'scroll';

// patch CustomEvent to allow constructor creation (IE/Chrome)
if (typeof window.CustomEvent !== "function" ) {
if (typeof window.CustomEvent !== 'function') {

window.CustomEvent = function(event, params) {

Expand All @@ -53,32 +53,32 @@
});

// clear the timeout if the user releases the mouse/touch
document.addEventListener(mouseUp, function(e) {
document.addEventListener(mouseUp, function() {
clearTimeout(timer);
});

// clear the timeout if the user leaves the element
document.addEventListener(mouseOut, function(e) {
document.addEventListener(mouseOut, function() {
clearTimeout(timer);
});

// clear if the mouse moves
document.addEventListener(mouseMove, function(e) {
document.addEventListener(mouseMove, function() {
clearTimeout(timer);
});

// clear if the Wheel event is fired in the element
document.addEventListener(mouseWheel, function(e){
document.addEventListener(mouseWheel, function() {
clearTimeout(timer);
});

// clear if the Scroll event is fired in the element
document.addEventListener(wheel, function(e){
document.addEventListener(wheel, function() {
clearTimeout(timer);
});

// clear if the Scroll event is fired in the element
document.addEventListener(scrollEvent, function(e){
document.addEventListener(scrollEvent, function() {
clearTimeout(timer);
});

Expand Down

0 comments on commit a179f25

Please sign in to comment.