From 458b6064982cadcdae9c0f10ae32b08ea5ee79ce Mon Sep 17 00:00:00 2001 From: Martijn Swart Date: Thu, 29 Feb 2024 15:27:52 +0100 Subject: [PATCH] [slider] Fix touchend event --- attractions/slider/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/attractions/slider/utils.js b/attractions/slider/utils.js index 8cf1dc5ea..c51fb6769 100644 --- a/attractions/slider/utils.js +++ b/attractions/slider/utils.js @@ -10,7 +10,7 @@ */ function normalizeEvent(e) { if (e.type.includes('touch')) { - return /** @type {TouchEvent}*/ (e).touches[0]; + return /** @type {TouchEvent}*/ (e).touches[0] || (e).changedTouches[0]; } else { return /** @type {MouseEvent}*/ (e); }