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
Keyboard smooth scrolling animation is not disabled when NSScrollAnimationEnabled
is false
#6409
Keyboard smooth scrolling animation is not disabled when NSScrollAnimationEnabled
is false
#6409
Conversation
Can we give the bug/PR a better title? |
f109cb8
to
c8af2c3
Compare
NSScrollAnimationEnabled
is false
@@ -289,7 +289,8 @@ EventHandlerDrivenSmoothKeyboardScrollingEnabled: | |||
WebKitLegacy: | |||
default: false | |||
WebKit: | |||
"PLATFORM(COCOA)": true | |||
"PLATFORM(MAC)": WebKit::defaultScrollAnimatorEnabled() | |||
"PLATFORM(IOS)": true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be PLATFORM(IOS_FAMILY)
since PLATFORM(COCOA)
is PLATFORM(MAC) || PLATFORM(IOS_FAMILY)
.
@hortont424 is it expected that EventHandlerDrivenSmoothKeyboardScrollingEnabled
was true on iOS?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like a surprising choice :) I don't recall how WKKeyboardScrollingAnimator wins....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should I change it to be false by default and only then WebKit::defaultScrollAnimatorEnabled()
for MAC?
EWS run on previous version of this PR (hash c8af2c3) |
c8af2c3
to
c7245fa
Compare
EWS run on previous version of this PR (hash c7245fa) |
c7245fa
to
cbf021e
Compare
EWS run on current version of this PR (hash cbf021e) |
β¦mationEnabled` is `false` https://bugs.webkit.org/show_bug.cgi?id=247822 rdar://101225956 Reviewed by Simon Fraser. Previously, setting `NSScrollAnimationEnabled` to `false` would disable all scroll animations. However, enabling keyboard smooth scrolling regressed this and did not respect this setting any longer. This PR fixes this by having `EventHandlerDrivenSmoothScrolling` respect the value of `NSScrollAnimationEnabled` so now scroll animations may once again be disabled. * Source/WTF/Scripts/Preferences/WebPreferencesInternal.yaml: Canonical link: https://commits.webkit.org/256661@main
cbf021e
to
207c359
Compare
Committed 256661@main (207c359): https://commits.webkit.org/256661@main Reviewed commits have been landed. Closing PR #6409 and removing active labels. |
207c359
cbf021e