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.

set scroll-sensitivity="190" :force-fallback="true" can't run onclick event

See original GitHub issue

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

github_iconTop GitHub Comments

9reactions
smartweicommented, Nov 28, 2019

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>

4reactions
alonglivecommented, Apr 30, 2020

@smartwei thanks :fallback-tolerance="1" Solved my problem

Read more comments on GitHub >

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

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