purpose of preventClickOnDrag ?
See original GitHub issueDescription
Can someone explain a bit more what preventClickOnDrag does? A click event for me is indeed bubbling up the DOM whenever I drag the carousel – with preventClickOnDrag
set to true, is the click event not suppose to bubble up?
These are my dependencies:
"@egjs/flicking": "^4.1.0",
"@egjs/vue-flicking": "^4.1.0"
I’m currently using Vue 2.6.11 and typescript 3.7.4
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
fix preventClickOnDrag option working for less than 1px by ...
Details According to document, preventClickOnDrag option prevent click event if the user has dragged at least a single pixel on the viewport element....
Read more >Options | Flicking - NAVER Open Source
preventClickOnDrag . Automatically prevent click event if the user has dragged at least a single pixel on the viewport element.
Read more >Introducing Flicking v4 with more customization and UI ...
On the other hand, Flicking uses the user's UI as the top priority. ... options/events such as “preventClickOnDrag” or “reachEdge”.
Read more >social-management / react-calendar-timeline / fb432ee232d ...
use clickTolerance instead of hardcoded value in PreventClickOnDrag. Find text in diff and context lines. Hide/show file tree. __tests__/components.
Read more >@egjs/react-flicking: Versions | Openbase
getRenderingPanels uses old list (#538); Flicking is animating on moveEnd ... preventClickOnDrag is not working on non-native clickable elements (#470) ...
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
Thanks for the explanation, that’s a very good point for improvement. I’ve just tested the current
preventClickOnDrag
and looks like it doesn’t work correctly due to the drag checking logic. I think I can fix this by updating drag-checking logic & capturing click events in the viewport element. I’ll leave a comment here after releasing the fix.On July 12th? Great, much appreciated!