[bugfix]: mantine bodge

This commit is contained in:
Kendall Garner 2024-04-11 08:25:53 -07:00
parent 9339c08777
commit cabd69772e
No known key found for this signature in database
GPG key ID: 18D2767419676C87

View file

@ -324,8 +324,13 @@ export const CenterControls = ({ playersRef }: CenterControlsProps) => {
setSeekValue(e);
}}
onChangeEnd={(e) => {
// There is a timing bug in Mantine in which the onChangeEnd
// event fires before onChange. Add a small delay to force
// onChangeEnd to happen after onCHange
setTimeout(() => {
handleSeekSlider(e);
setIsSeeking(false);
}, 50);
}}
/>
</SliderWrapper>