Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to debounce events? #42

Open
JeffJassky opened this issue Aug 27, 2019 · 1 comment
Open

Option to debounce events? #42

JeffJassky opened this issue Aug 27, 2019 · 1 comment

Comments

@JeffJassky
Copy link

JeffJassky commented Aug 27, 2019

A lot of accidental double-presses are registering on my capacitive touch screen. Is there a simple way to debounce events? So a minimum of say, 175ms is required between registering key presses?

@maniacminer
Copy link

I had add this to touch event handler
let trashhold; // is component scooped

      if (trashhold) return;
      trashhold = true;
      setTimeout(() => {
        trashhold = false;
      }, 100);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants