Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upTrackpad scrolling behaviour on OSX is wrong. Both bounce and directionality. #16442
Comments
|
@paulrouget interesting, I don't see why that code wouldn't work, but I just double checked and with the nightly of the date this issue was submitted, I can totally scroll at a 45 degree angle or any other direction at high speeds. Also that code if it worked wouldn't match Cocoa behaviour since it allows scrolling in any direction at very low speeds. |
|
Yeah. There's a regression. As for the more precise behavior (snapping only on high velocity and proper bounce), we can try to reproduce this ourself, or rely on the platform to only provide us with already post-processed events. Not sure if the latter is possible though. |
|
Hmm, the |
Properly modify scroll_location As described in #16442, scroll orientation is not locked. `delta` was copied. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16498) <!-- Reviewable:end -->
Playing around with Servo on OSX with a MBP trackpad and the number one thing I noticed was how broken scrolling is. I noticed a number of issues:
Alternatively, you can do what Sublime Text does, and allow diagonal scrolling at any speed, but preserve velocity in the other direction when hitting an edge (Sublime scrolling doesn't bounce).