nuxt / ui

A UI Library for Modern Web Apps, powered by Vue & Tailwind CSS.
https://ui.nuxt.com
MIT License
3.45k stars 383 forks source link

fix(Carousel): prevent mouse click when dragging #1781

Closed mukundshah closed 2 weeks ago

mukundshah commented 2 weeks ago

๐Ÿ”— Linked issue

โ“ Type of change

๐Ÿ“š Description

If <NuxtLink> is used inside the carousel, dragging will cause the link to be clicked. Now onwards, onMouseMove will add 'pointer-events': "none" to the carouselEl and will be removed onMouseUp, thereby preventing click to be propagated.

๐Ÿ“ Checklist

benjamincanac commented 2 weeks ago

Thanks ๐Ÿ˜Š