set scroll-sensitivity="190" :force-fallback="true" can't run onclick event
See original GitHub issueI read this page https://jsfiddle.net/dede89/s25p19hj/ add scroll-sensitivity=“190” :force-fallback=“true” item can’t onclick event My Code: Code Begin:
<draggable :animation="400" :scroll-sensitivity="250" :force-fallback="true" @start="filedStart2" :list = "t.filedList" @end="filedEnd" group="testList" :disabled="editable">
<div v-for="(f,fi) in t.filedList" :id="'filed'+f.archiveDetailUUID" :sort="true" class="file_width">
<div class="f_file_a file_width file_hover hover_close_vx1"
style="cursor: pointer;" @click="toShowPdf(f)" >
<div class="ffa_child border_grey">
<img style="width: 75px; height: 85px;" class="img_block" :src="'/static/img/pdf_icon.png'">
</div></div>
</div>
</draggable>
Code End:
@click=“toShowPdf(f)” can’t run toShowPdf this function
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Triggering onclick event using middle click - Stack Overflow
When I try this in Firefox and Chrome, it does not prevent the default behaviour of opening the link in a new tab,...
Read more >Element: wheel event - Web APIs | MDN
Each mouse click scrolls a line of content, where the method used to calculate line height is browser dependent. WheelEvent.DOM_DELTA_PAGE, 0x02 ...
Read more >Change mouse tracking, double-click, and scrolling speed on ...
Change mouse tracking speed. On your Mac, choose Apple menu > System Settings, then click Mouse in the sidebar. (You may need to...
Read more >Mouse Scroll Too Slow or Fast? How to Fix It in Windows 10
To change the vertical scroll speed of your mouse: Press Windows key + I to open Settings. Click Devices. Click Mouse. Use the...
Read more >Click, drag, or scroll with the touchpad
Click on Mouse & Touchpad to open the panel. In the Touchpad section, make sure the Touchpad switch is set to on. The...
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 Free
Top 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
I Fix it,thanks ,this is Code:
<draggable :animation="400" :scroll-sensitivity="250" :fallback-tolerance="1" :force-fallback="true" :list = "t.filedList" @start="filedStart2" @end="filedEnd" group="testList" :disabled="editable"> <div v-for="(f,fi) in t.filedList" :id="'filed'+f.archiveDetailUUID" :sort="true" class="file_width"> <div @click="toShowPdf(f)" > <div class="ffa_child border_grey"> <img style="width: 75px; height: 85px;" class="img_block" :src="'/static/img/pdf_icon.png'"> </div> </draggable>
@smartwei thanks
:fallback-tolerance="1"
Solved my problem