Infinite loop on touch
See original GitHub issueIf I have an element with a touch event that I need to pass arguments to, it creates an infinite loop and crashes the browser (sometimes).
<li v-touch:start="abc(xyz)" />
The above will cause problems.
<li v-touch:start="abc" />
The above works…but I need to pass an argument into the function I am calling. How could I do that? I don’t see in the docs anywhere with it being used this way.
I’m not sure if this is a bug or just misuse on my part and expected behaviour.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
How to create a cancelable Endless Loop in Touch Portal
This guide will show you how to create a loop in Touch Portal that will run endlessly but which you can stop if...
Read more >Endless loop at the touch of a button - python
I need to start endless loop by pressing Space (for example) and end it pressing Space again @win.event def on_draw(): (some code of ......
Read more >Download Touch Loops Infinite Promise
Let's get deep with our latest emotional house pack: Infinite Promise. A collection of loops inspired by Jaques Greene, Disclosure and Koreless, ...
Read more >when you try to adjust the touch screen, if you get infinite loop
For Nintendo 3DS on the 3DS, a GameFAQs message board topic titled "Important: when you try to adjust the touch screen, if you...
Read more >The Infinite Loop - Online & VR Team building activities
The infinite loop is a business game made for team building.It's a simulation and role-playing video game focusing on real-time communication and ...
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
Hi,
This is a known issue and has mentioned in README: https://github.com/jerrybendy/vue-touch-events#how-to-add-extra-parameters
@SuharshTyagii You can use arrow function instead, or make
this
as a variable beforereturn
.