Skip to content

Commit

Permalink
Bugfix/example issues fixes (#772)
Browse files Browse the repository at this point in the history
* fix: found a few small issues while testing examples with jQuery CDN
  • Loading branch information
ghiscoding committed Jul 8, 2023
1 parent 1bc24ad commit 1a22700
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions slick.interactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
};

if (containerElement) {
containerElement.addEventListener('mousedown', userPressed);
containerElement.addEventListener('mousedown', userPressed, Slick.Utils.enablePassiveWhenSupported());
containerElement.addEventListener('touchstart', userPressed, Slick.Utils.enablePassiveWhenSupported());
}

Expand All @@ -51,7 +51,7 @@

function destroy() {
if (containerElement) {
containerElement.removeEventListener('mousedown', userPressed);
containerElement.removeEventListener('mousedown', userPressed, Slick.Utils.enablePassiveWhenSupported());
containerElement.removeEventListener('touchstart', userPressed, Slick.Utils.enablePassiveWhenSupported());
}
}
Expand Down

0 comments on commit 1a22700

Please sign in to comment.