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
0 answers
Debounce an ng-change event in angular
What's a good way to debounce an ng-change event in angular? I know about the debounce available in ng-model options, but I want my model to update right away as its changed because the user has the option to submit this data, and I don't want any…

ceckenrode
- 4,543
- 7
- 28
- 48
0
votes
1 answer
DRY up ng-model
I have a small web-app that accepts input from a human to create search params. I'm using ng-model-options to debounce the ng-change function to execute the search.
I have small arrows next to the column names on the table that lets users sort…

user3186332
- 345
- 3
- 13
0
votes
0 answers
Angular on-change multiple calls removal(debounce/timers/time manipulation?)
I have a situation where I can't use debounce in html like ng-model-option: {debounce:1000}
But I want to remove repeated callbacks to function doCallback in my directive, and make only 1 call in 1s
html:
angular…

Greeed
- 418
- 2
- 8
- 29
0
votes
1 answer
bouncing caused by unlocking if statement VB.NET
Is there a solution that would generate a better output to my VB.NET if statement. I tried to keep it from locking by setting it to the min and max values while under or over these values. It works but the output is not so charming, ie the values…

Camper
- 3
- 6
0
votes
0 answers
debounce function for document.scroll
my function causes a sluggish behaviour of scrolling
$(function() {
var currentHash = "top";
$(document).bind('scroll', function(e) {
$('.content section, .scrollpos').each(function() {
var hash =…

user2814794
- 81
- 1
- 1
- 7
0
votes
3 answers
How do I wait for lulls in channel activity to trigger something?
I have a channel that will receive bursts of writes to it. I want to wait until a burst of sends on the channel have finished before triggering an action.
I have looked at this gist, however, it will send on the output every intervalif there is data…

F21
- 32,163
- 26
- 99
- 170
0
votes
1 answer
Add debounce on top of validateConnection in JointJs
I'm struggling with a graph composed by nodes and links in JointJS
I want to prevent the creation of specific links between nodes on the base of some rules (eg. to avoid loops).
To do so I implemented some checks inside the validateConnection…

pedro.zena
- 391
- 1
- 4
- 16
0
votes
1 answer
Javascript Key Event - Debouce only when it is repeated key event?
Use case
I have a list of person or group (like in FB messenger) (left pane)
When I switch person, I load the message (API call).
If I press down arrow quickly, then instead of making API call for each of the person, I want to load only the person…

Prabhakar Kasi
- 531
- 4
- 18
0
votes
0 answers
Improve user experience when re-paint of huge render tree is inevitable
I have a huge SVG which has lots of graphical elements, on mouse wheel zoom event gets triggered which re-paints the whole SVG.
With some profiling I could break down the time taken in such event,
Calculations needed to transform the SVG are taking…

themanwhosoldtheworld
- 560
- 4
- 23
0
votes
2 answers
How do I prevent "duplicate" events from firing in jQuery?
I have an event handler wired to a variety of events to ensure that it gets fired under a variety of circumstances.
var allChangeEvents = "focus blur select change click dblclick mousedown mouseup keypress keydown…

Jacob Stamm
- 1,660
- 1
- 29
- 53
0
votes
0 answers
VHDL button debouncing in state machine application
I'm programming an FPGA board w/ Lattice XP2-5E chip. On board are also 4 rows and 2 columns of LED lights which I'm trying to control with 4 directional push-buttons and one reset push-button. For instance, if (1st row/1st column) LED is turned on…

kreso
- 11
- 1
- 4
0
votes
2 answers
VHDL: button debounce inside a Mealy State Machine
Hi I'm trying to implement a mealy machine using VHDL, but I'll need to debounce the button press. My problem is I'm not sure where should I implement the debouncing. My current work is like this:
process(clk)
begin
if(clk' event and clk = '1')…

richards
- 517
- 9
- 27
0
votes
0 answers
debounce function called erratically on IE 10, 11
I am using a debounce function to resize a div - it works fine except on IE 10 and 11, where it seems to be called all the time, which ends up showing scrollbars contimually off and on and the div "flickers" . Any known solution?
Thanks.
Sorry…

user1700933
- 187
- 1
- 3
- 10
0
votes
0 answers
Button debounce intermittent in Arduino
What I'd like to accomplish is for the button to be called once after I press it with my fingers. Sometimes it works but there are also times it doesn't. Let's say I need to select from a menu. There are times that when I press down or up button, it…

devwannabe
- 3,160
- 8
- 42
- 79
0
votes
1 answer
In RFID, are there tag modules that give the user a choice of different outputs?
I look for an RFID tag that gives you the option to 'choose the output'. For example, you want to choose an RFID-output from a list of X possible outputs using a multi-directional switch with X directions.
Does something like that exist? What…