utsb-fmm / MobileLikeScroller

A verylight JS transforming your div into a swipable area with mobile-like inertia, enhancing the desktop scrolling experience.
MIT License
4 stars 1 forks source link

Releasing dragging on anchor element #2

Open hakeryk2 opened 3 months ago

hakeryk2 commented 3 months ago

If the element we clicked to start dragging is a link (i.e. product image), the browser navigates to where the link points immediately after releasing the drag, reloading the page. It happens when you release a click and the cursor is on the anchor element.

I tried to use your library on the product carousel. I would appreciate any help you can give me.

P.S. It is worth mentioning in the docs that the selected object cannot have the scroll-snap-type property set especially to x mandatory because it causes a massive performance drop when using the script.