processing4
processing4 copied to clipboard
Add Smooth Scrolling to the PDE
In an effort to make the PDE more modern feeling, I realised this morning that a big part of the issue is that the scrolling updates per line, not with the scroll wheel (mostly with smooth scrolling on macOS).
This change will make scrolling in the PDE fractional, meaning you can scroll 1/3 or a line or less if you want. It also increases the re-rendering frequency of scrolling updates.
Demo
https://github.com/user-attachments/assets/aa895496-95a6-4eab-9168-1c576c5be18e
Left to do
- [ ] Fix an issue where the gutter is not drawn if you scroll fast enough
- [ ] Fix an issue where some of the redrawing is not correct
- [ ] Fix an issue where the user can overscroll the sketch (although this could also be a feature)
- [ ] Horizontal smooth scrolling
- [ ] Fix Scrolling by scrollbar
- [ ] Implement dampening on Windows and Linux?