learn-gdscript icon indicating copy to clipboard operation
learn-gdscript copied to clipboard

OSX - Scrolling position differs between trackpad, mouse scroll wheel, and up/down arrow keys

Open skplunkerin opened this issue 5 months ago • 2 comments

Describe the bug NOTE: Web version of app works as expected, I'm only noticing this on the downloaded version of the app (tested on OSX). Unsure if this happens in other operating systems.

There are three types of methods for page scrolling:

  1. Trackpad
  2. Mouse wheel
  3. Up/Down arrow keys

When scrolling with one method, then switching to a different method (specific scenarios in "To Reproduce" section), the scroll position jumps to the last scroll position for the new scroll method instead of retaining the current page scroll position of the last used method.

To Reproduce Steps to reproduce the bug:

  1. Start scrolling down with trackpad or mouse scroll-wheel until you're a good ways down
  2. Then use Down arrow key to try to continue scrolling down (or Up to scroll up)
  3. Instead of continuing scrolling from your page position, you'll jump up to the top of the page and scroll from there

It's as if the Arrow keys and Mouse wheel share a position and ignore what the Trackpad position is.

Here's all of the tested scenarios and which ones trigger it: (✅ = bug triggers)

  • ✅ Switch from Trackpad to Mouse wheel
  • ✅ Switch from Trackpad to Arrow keys
  • ❌ Switch from Mouse wheel to Trackpad
  • ❌ Switch from Arrow keys to Trackpad
  • ❌ Switch from Mouse wheel to Arrow keys
  • ❌ Switch from Arrow keys to Mouse wheel

Expected behavior Page scroll positions shouldn't differ depending on the scroll method used. Switching between scroll controls should continue scrolling where you left off and not jump to a different scroll vertical position of the page.

Screenshots

  1. start page scroll position (using trackpad or mouse wheel) Image

  2. end page scroll position (using trackpad or mouse wheel) Image

  3. down arrow doesn't continue scrolling (it jumps up to scroll position of arrow keys instead of sharing scroll position across all scrolling methods) Image

Information about your device (please complete the following information):

  • Operating System: MacOS
  • Browser: Chrome

Additional context It appears that the Arrow keys and Mouse wheel share a page scroll position, and that the Trackpad is able to use that no problem, but if position changes using Trackpad, Arrow keys/Mouse wheel get's confused.

skplunkerin avatar Aug 16 '25 18:08 skplunkerin

After some more testing, it looks likes this bug happens:

  • ✅ Switch from Trackpad to Mouse wheel
  • ✅ Switch from Trackpad to Arrow keys
  • ❌ Switch from Mouse wheel to Trackpad
  • ❌ Switch from Arrow keys to Trackpad
  • ❌ Switch from Mouse wheel to Arrow keys
  • ❌ Switch from Arrow keys to Mouse wheel

It appears that the Arrow keys and Mouse wheel share a page scroll position, and that the Trackpad is able to use that no problem.

But if scrolling with the Trackpad, then switching, the Mouse wheel and Arrow keys don't know where page scroll is at and reverts to their last (or start of page) scroll position.


I updated the bug description to include the list of scenarios that trigger this bug

skplunkerin avatar Aug 16 '25 19:08 skplunkerin

I won't have time to work on this in the foreseeable future, but I just wanted to say thanks for taking the time to write an excellent bug report! It's rare to get reports this clear and thorough.

NathanLovato avatar Aug 23 '25 17:08 NathanLovato