diff --git a/index.js b/index.js index 21115c0..88fddc5 100644 --- a/index.js +++ b/index.js @@ -1384,7 +1384,9 @@ notPassive = { methods: { // Cancel an Event stopEvent: function (e) { - return e.preventDefault(); + if (e.cancelable) { + return e.preventDefault(); + } }, // Keep track of whether user is dragging onPointerDown: function (pointerEvent) { diff --git a/package.json b/package.json index 8fff9b6..2d92721 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue-ssr-carousel", - "version": "2.4.1", + "version": "2.4.2", "description": "A performance focused Vue carousel designed for SSR/SSG environments.", "main": "index.js", "scripts": {