Settle event is not triggered when draggable is set to false
See original GitHub issueDescribe the bug The settle event works as expected if the user only navigates with the left/right arrows. If the user tries to swipe first and uses the arrows again, the event is not triggered at all.
To Reproduce https://codesandbox.io/s/embla-carousel-default-react-forked-cs8fb?file=/src/js/EmblaCarousel.js
Additional context
I’m doing page transitions at the end of each project/slide. It works perfectly with draggable: true
, but I’d need to disable this feature on desktop.
Browser Firefox 81.0, macOS
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Why drag and dragstart event are still triggered when ...
If you change cell.draggable=true you will see the entire cell is pulled off. I set them to false , so no drag event...
Read more >Safari 13 loses drag event #1571 - SortableJS/Sortable - GitHub
This issue is the following : whenever you perform a drag with a draggable element, and then drop the item, then the next...
Read more >Calendar/feature/CalendarDrag - Bryntum
This event fires on the owning Calendar before a drag creation gesture is completed. Return false to immediately veto the operation or a...
Read more >Custom events in JavaScript: A complete guide
If the custom event has cancelable set to false , calling event.preventDefault() will not perform any action.
Read more >trigger | Cypress Documentation
Trigger an event on a DOM element. It is unsafe to chain further commands that rely on the subject after .trigger(). Syntax Usage...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Enjoy 🙂!
It works like a charm with React for sure. You can close the issue 👍