Interactive elements are activated after dragging in <sl-carousel mouse-dragging>
#2196
Labels
bug
Things that aren't working right in the library.
good first issue
This bug or task is a good first issue for new contributors.
help wanted
Ready for a contributor to tackle.
Describe the bug
When using cards with interactive elements in the
mouse-dragging
carousel, these interactive elements are activated after the drag ends when the mouse key is released.There is a fairly common pattern where the clickable area of a link is stretched using a pseudo element to make the entire card interactive. Heydon Pickering writes about this. With this approach, immediately after dragging the carousel to view the cards, the link will be clicked and a new page will load.
To Reproduce
Steps to reproduce the behavior:
* In the demo, this happens thanks to fragments
href="#card1"
and the:target
pseudo class. In the real case, it will activate the link and go to a new page.Demo
There are CodePen demo with a minimal reproduction.
Screencast
screencast.mp4
Browser / OS
The text was updated successfully, but these errors were encountered: