Debouncing ensures that a handler is not executed too often for an event that may be happening several times per second.
Questions tagged [debouncing]
698 questions
0
votes
1 answer
Can't update an input value inside specific array item in redux
I am working in a react-native projetc and i don't understand very well Redux. I need help.:D
We got it an array of objects like:
lines[
{"cant":2, "ref":"bar"}, {"cant":5, "ref":"foo"}
]
Every line is a card information. These cards have…

rockandbit
- 1
- 1
0
votes
0 answers
Reusable throttle function
How to make a throttled function reusable?
Created a throttled function, that'd like to re-use in different places in an application. The throttle function should be imported into different file locations!
Bellow, you can find a working version,…

punkbit
- 7,347
- 10
- 55
- 89
0
votes
0 answers
Window scrolling firing multiple times
I have some sample code where I am trying to make a nav sticky when it reaches a certain point. The issue is that the scroll method keeps firing and it appears to be stuck in some kind of loop where the class is being constantly added and removed,…

Jacklyn N
- 77
- 1
- 12
0
votes
0 answers
JavaScript - The best debounce time delay
What is the best practice for debouncing some web forms?
I use debounce in many text fields to delay triggering for some other things whyle user typing.
Normaly I use 300ms for debouncing but sometimes are to short, sometimes to long.
Is there some…

Ivijan Stefan Stipić
- 6,249
- 6
- 45
- 78
0
votes
1 answer
debounce with two button to turn on different leds with Arduino
I want to make debounce for two buttons. So turn on Red led or Green led knowing which button have pressed My program only works for 1 button.
I think that I need a array for two several buttons.
Could anyone help me to improve my code two buttons…

mangulolion
- 1
- 1
0
votes
2 answers
debounce function in underscore
I am trying to use the debounce function for setting automatic logout for my application. My understanding is that debounce function will fire the function after the 30 seconds if my application not used. I tried to read the documentation of…

jenny
- 277
- 7
- 18
0
votes
1 answer
how to delay/debounce notification on timer (swift3)
If the start button is pressed my notification will go continue to go off every 30 seconds infititley. I want to make it so that every time the user hits the start button the countdown is reset and the notification will only appear in the 30 seconds…
user8105388
0
votes
2 answers
react / redux debounce throttling
I'm trying to debounce a component in my webapp. Actually it is a filter for the maxPrice and if the user starts to print, the filter starts to work and all the results disappear until there is a reasonable number behind it.
What I tried so…

MichaelRazum
- 789
- 1
- 10
- 26
0
votes
1 answer
Ember 2, call functions in route using Ember.run.debounce
I'm in a route called "game".
In an action I call Ember.run.debounce for a function, but in that function I can't call other functions.
app/routes/game.js:
import Ember from 'ember';
export default Ember.Route.extend({
model() {
...
},
…
user4412054
0
votes
1 answer
Debounce click on an AJAX link
Is it possible to debounce the click of a link? If a user clicks too many times too fast on a pjax link it'll break the load of new content.
$(document).on('click', 'a[data-pjax]', loadNewContent);
var $target = $('main.content…

John the Painter
- 2,495
- 8
- 59
- 101
0
votes
1 answer
Why isn't debounce function executing the method?
When I run this code, I don't see any console log in the console. Is the debounce method (taken from here) not executing the method at all?
function debounce(func, wait, immediate) {
var timeout;
var args =…

gurvinder372
- 66,980
- 10
- 72
- 94
0
votes
0 answers
stm32f4 button debouncing when pressing
I'm working on an "accurate" button. I mean when I press the button it will not debounce. Can I achieve this by using only software ?
I'm using STM32F4 MCU.
Thank you all...

Hakan Çaylak
- 1
- 2
0
votes
1 answer
Fullpage JS scroll debounce
I am using Fullpage.js library and it works fine out of the box, but I need to adjust some settings. I've set scrollingSpeed: 300,
and now it behaves weirdly.
When a default value is used (it is 700) everything works fine, but when I set…
user7568246
0
votes
1 answer
Consecutive writings to several files in the server
(* As my previous question has been more or less answered, and the code has evolved, I open a new question. *)
I want to build a simple playground with MEAN stack that mimics plunker: we have a list of files and a textarea on the left hand, and a…

SoftTimur
- 5,630
- 38
- 140
- 292
0
votes
3 answers
React Component - debounce
Trying to create a delay on react component that has input field that updates on change
Here is my onChange method
handleOrderQtyKeyPress (e) {
var regex = /[^0-9]/
if (e.key.match(regex)) {
e.preventDefault();
}
if…

RBdevelop
- 48
- 8