From 472768cfc06dc68c67cfe1e990fd75734e160d3b Mon Sep 17 00:00:00 2001 From: Robert Reinhard Date: Tue, 9 Apr 2024 15:42:15 -0700 Subject: [PATCH] 2.4.2 --- index.js | 4 +++- package.json | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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": {