From 75fe052f61ab28e249515230ba6d248e7a150c87 Mon Sep 17 00:00:00 2001 From: icaraps Date: Thu, 5 Oct 2023 12:14:46 +0400 Subject: [PATCH] passive scroll --- blocks/carousel/carousel.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/blocks/carousel/carousel.js b/blocks/carousel/carousel.js index 0852269..b29b416 100644 --- a/blocks/carousel/carousel.js +++ b/blocks/carousel/carousel.js @@ -130,7 +130,9 @@ const enableCarouselFunctionality = (template, { isWedges, isLarge, isAutoCarous window.addEventListener('touchmove', touchMoveHandler); }; carouselWrapper.onmousedown = mouseDownHandler; - carouselWrapper.addEventListener('touchstart', mouseDownHandler); + carouselWrapper.addEventListener('touchstart', mouseDownHandler, { + passive: true, + }); // button logic const rightOnClick = () => {