Smoother zoom?
Feature description
Zooming on exams and documents is not very smooth currently, because the slider uses useDebounce. After moving the slider, it waits a few hundred milliseconds before updating the page zoom.
I'm not sure if this done for performance reasons or not, but I've removed useDebounce and it feels smoother and my laptop did not struggle with a 50 page PDF.
Use cases
Exam and document zooming when things are small, but you have to try out different zoom levels with the slider until you're satisfied.
Benefits
Smoother zooming for all.
Requirements
Remove useDebounce
Links / References / Examples
I couldn't find a MR or a specific commit that introduced useDebounce deliberately, it seems like it was part of the original PDF viewer code. So if anybody knows if this was done deliberately, I would love to know why! Otherwise, I think I suggest removing it.