You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I wonder how I could make it work on desktop: I have a carousel with product cards, which are wrap with <a> tag. On touch screens the drag functionality behaves as expected but on desktop by interaction with a mouse it doesn't really work because the "draggable" area shrinked to spaces between cards. Cards themselves aren't draggable because they're links.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I wonder how I could make it work on desktop: I have a carousel with product cards, which are wrap with
<a>
tag. On touch screens the drag functionality behaves as expected but on desktop by interaction with a mouse it doesn't really work because the "draggable" area shrinked to spaces between cards. Cards themselves aren't draggable because they're links.Here's an example what I mean: https://codesandbox.io/s/framer-motion-usescroll-element-scrolling-forked-88g2ks.
Is there any way to make such carousel fully draggable on desktop?
Beta Was this translation helpful? Give feedback.
All reactions