Slider - do not change value during debounce/delay #2492
Unanswered
jan-drozen
asked this question in
Q&A
Replies: 1 comment
-
As you have found with the logging result, the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
with this simple setup:
<FluentSlider Min="0" Max="100" Step="1" @bind-Value=SliderValue @bind-Value:after="WriteValue" Immediate="false" ImmediateDelay="2000"></FluentSlider>
I would expect that during the delay period (2 sec in this case) the bound value
SliderValue
is not changed and also the:after
event is also not triggered.What I would like to avoid is to trigger the
WriteValue
event for each value between the original and the new target value if user drags the slider. Now I can see in the console that the event is triggered immediately and for each step.I would love to trigger it after the delay period elapsed from the last user change to the control.
Beta Was this translation helpful? Give feedback.
All reactions