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.

Infinite loop on touch

See original GitHub issue

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

github_iconTop GitHub Comments

4reactions
jerrybendycommented, Nov 28, 2019

Hi,

This is a known issue and has mentioned in README: https://github.com/jerrybendy/vue-touch-events#how-to-add-extra-parameters

1reaction
jerrybendycommented, Oct 31, 2020

@SuharshTyagii You can use arrow function instead, or make this as a variable before return.

Read more comments on GitHub >

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

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