Thumbnail scrubber improvements (#4081)

* Remove deps from useDebounce hook
* Add useThrottle hook
* Throttle preview scrubber
* Scrubber improvements
This commit is contained in:
DingDongSoLong4
2023-09-08 03:33:16 +02:00
committed by GitHub
parent 7a9214375b
commit 50c4ac98af
14 changed files with 126 additions and 129 deletions

View File

@@ -212,7 +212,6 @@ export const LightboxComponent: React.FC<IProps> = ({
const disableInstantTransition = useDebounce(
() => setInstantTransition(false),
[],
400
);