Changeset 246818 in webkit
- Timestamp:
- Jun 25, 2019 4:42:03 PM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r246811 r246818 1 2019-06-25 Timothy Hatcher <timothy@apple.com> 2 3 Clicking the up/down spin buttons for a number input increments/decrements by 2. 4 https://bugs.webkit.org/show_bug.cgi?id=198809 5 6 Reviewed by Tim Horton. 7 8 AppKit no longer registers NSScrollerButtonDelay and NSScrollerButtonPeriod in the base 9 NSUserDefaults for an app. This caused our use to always get 0s when setting the click 10 and hold timer, causing the value to increment quickly for a single press. 11 12 * platform/mac/ScrollbarThemeMac.h: 13 (WebCore::ScrollbarThemeMac::initialAutoscrollTimerDelay): Added. Hardcode 500ms. 14 (WebCore::ScrollbarThemeMac::autoscrollTimerDelay): Added. Hardcode 50ms. 15 * platform/mac/ScrollbarThemeMac.mm: 16 (WebCore::ScrollbarThemeMac::preferencesChanged): Removed use of old user defaults. 17 (WebCore::ScrollbarThemeMac::initialAutoscrollTimerDelay): Deleted. 18 (WebCore::ScrollbarThemeMac::autoscrollTimerDelay): Deleted. 19 1 20 2019-06-25 Keith Miller <keith_miller@apple.com> 2 21 -
trunk/Source/WebCore/platform/mac/ScrollbarThemeMac.h
r239689 r246818 53 53 void updateScrollbarOverlayStyle(Scrollbar&) override; 54 54 55 Seconds initialAutoscrollTimerDelay() override ;56 Seconds autoscrollTimerDelay() override ;55 Seconds initialAutoscrollTimerDelay() override { return 500_ms; } 56 Seconds autoscrollTimerDelay() override { return 50_ms; } 57 57 58 58 ScrollbarButtonsPlacement buttonsPlacement() const override; -
trunk/Source/WebCore/platform/mac/ScrollbarThemeMac.mm
r239847 r246818 137 137 static const int cOuterButtonOverlap = 2; 138 138 139 static Seconds gInitialButtonDelay { 500_ms };140 static Seconds gAutoscrollButtonDelay { 50_ms };141 139 static bool gJumpOnTrackClick = false; 142 140 static bool gUsesOverlayScrollbars = false; … … 241 239 NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; 242 240 [defaults synchronize]; 243 gInitialButtonDelay = Seconds { [defaults floatForKey:@"NSScrollerButtonDelay"] };244 gAutoscrollButtonDelay = Seconds { [defaults floatForKey:@"NSScrollerButtonPeriod"] };245 241 gJumpOnTrackClick = [defaults boolForKey:@"AppleScrollerPagingBehavior"]; 246 242 usesOverlayScrollbarsChanged(); … … 284 280 } 285 281 286 Seconds ScrollbarThemeMac::initialAutoscrollTimerDelay()287 {288 return gInitialButtonDelay;289 }290 291 Seconds ScrollbarThemeMac::autoscrollTimerDelay()292 {293 return gAutoscrollButtonDelay;294 }295 296 282 ScrollbarButtonsPlacement ScrollbarThemeMac::buttonsPlacement() const 297 283 {
Note: See TracChangeset
for help on using the changeset viewer.