Skip to content

Add Smooth Scrolling to the PDE #1001

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Stefterv
Copy link
Collaborator

@Stefterv Stefterv commented Mar 24, 2025

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

Screen.Recording.2025-03-24.at.13.00.22.mov

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?

@Stefterv Stefterv marked this pull request as draft March 24, 2025 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant