Skip to content

Commit

Permalink
passive scroll (#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
icaraps authored Oct 5, 2023
1 parent 6e282bc commit fbd77a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion blocks/carousel/carousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () => {
Expand Down

0 comments on commit fbd77a2

Please sign in to comment.