question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Settle event is not triggered when draggable is set to false

See original GitHub issue

Describe 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:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
davidjerlekecommented, Oct 10, 2020

Enjoy 🙂!

1reaction
th-kmcommented, Oct 10, 2020

It works like a charm with React for sure. You can close the issue 👍

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found