You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hiya, been scouring through the source code but can't seem to find any answers so I figured I'd ask.
The use case is basically a playback slider on an audio element to control the current time.
I am looking to have the slider component only fire events when the user is actually interacting with the slider.
The time value is being updated outside by the playback by the audio element.
I'm trying to make it so when the user starts sliding. The bound time values "disengages" and only actually changes when onValueCommitted fires.
Here's some pseudo code of how I'd like for this to work.
Currently the issue is dragging will be set to true every time player.time updates since a change to the Slider's value prop will cause onValueChange to fire.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hiya, been scouring through the source code but can't seem to find any answers so I figured I'd ask.
The use case is basically a playback slider on an audio element to control the current time.
I am looking to have the slider component only fire events when the user is actually interacting with the slider.
The time value is being updated outside by the playback by the audio element.
I'm trying to make it so when the user starts sliding. The bound time values "disengages" and only actually changes when
onValueCommitted
fires.Here's some pseudo code of how I'd like for this to work.
Currently the issue is
dragging
will be set to true every timeplayer.time
updates since a change to the Slider'svalue
prop will causeonValueChange
to fire.Thanks in advanced!
Beta Was this translation helpful? Give feedback.
All reactions