Skip to content

Commit 30d2917

Browse files
author
Matheus Inácio
committed
Fixed the debounce extension in order to update to the last action passed.
1 parent fef65a5 commit 30d2917

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Microsoft.Toolkit.Uwp/Extensions/DispatcherQueueTimerExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public static void Debounce(this DispatcherQueueTimer timer, Action action, Time
6262
timer.Tick += Timer_Tick;
6363

6464
// Store/Update function
65-
_debounceInstances.AddOrUpdate(timer, action, (k, v) => v);
65+
_debounceInstances.AddOrUpdate(timer, action, (k, v) => action);
6666
}
6767

6868
// Start the timer to keep track of the last call here.

0 commit comments

Comments
 (0)