Changeset 245832 in webkit
- Timestamp:
- May 28, 2019, 4:57:27 PM (7 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
Platform/spi/ios/UIKitSPI.h (modified) (2 diffs)
-
UIProcess/ios/WKKeyboardScrollingAnimator.mm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r245831 r245832 1 2019-05-28 Tim Horton <timothy_horton@apple.com> 2 3 Horizontal scrollbar flashes after scrolling vertically with keyboard 4 https://bugs.webkit.org/show_bug.cgi?id=197942 5 <rdar://problem/46169578> 6 7 Reviewed by Dean Jackson. 8 9 * UIProcess/ios/WKKeyboardScrollingAnimator.mm: 10 (axesForDelta): 11 (-[WKKeyboardScrollViewAnimator scrollToContentOffset:animated:]): 12 Only flash relevant axes. 13 14 * Platform/spi/ios/UIKitSPI.h: 15 1 16 2019-05-28 Alex Christensen <achristensen@webkit.org> 2 17 -
trunk/Source/WebKit/Platform/spi/ios/UIKitSPI.h
r245144 r245832 339 339 }; 340 340 341 typedef enum { 342 UIAxisNeither = 0, 343 UIAxisHorizontal = 1 << 0, 344 UIAxisVertical = 1 << 1, 345 UIAxisBoth = (UIAxisHorizontal | UIAxisVertical), 346 } UIAxis; 347 341 348 @interface UIScrollView () 342 349 - (void)_stopScrollingAndZoomingAnimations; … … 345 352 - (double)_horizontalVelocity; 346 353 - (double)_verticalVelocity; 347 - (void)_flashScrollIndicators PersistingPreviousFlashes;354 - (void)_flashScrollIndicatorsForAxes:(UIAxis)axes persistingPreviousFlashes:(BOOL)persisting; 348 355 @property (nonatomic, getter=isZoomEnabled) BOOL zoomEnabled; 349 356 @property (nonatomic, readonly, getter=_isAnimatingZoom) BOOL isAnimatingZoom; -
trunk/Source/WebKit/UIProcess/ios/WKKeyboardScrollingAnimator.mm
r245285 r245832 590 590 } 591 591 592 - (void)scrollToContentOffset:(WebCore::FloatPoint)contentOffsetDelta animated:(BOOL)animated 592 #if HAVE(UI_SCROLL_VIEW_INDICATOR_FLASHING_SPI) 593 static UIAxis axesForDelta(WebCore::FloatSize delta) 594 { 595 UIAxis axes = UIAxisNeither; 596 if (delta.width()) 597 axes = static_cast<UIAxis>(axes | UIAxisHorizontal); 598 if (delta.height()) 599 axes = static_cast<UIAxis>(axes | UIAxisVertical); 600 return axes; 601 } 602 #endif 603 604 - (void)scrollToContentOffset:(WebCore::FloatPoint)contentOffset animated:(BOOL)animated 593 605 { 594 606 auto scrollView = _scrollView.getAutoreleased(); … … 597 609 if (_delegateRespondsToWillScroll) 598 610 [_delegate keyboardScrollViewAnimatorWillScroll:self]; 599 [scrollView setContentOffset:contentOffset Deltaanimated:animated];611 [scrollView setContentOffset:contentOffset animated:animated]; 600 612 #if HAVE(UI_SCROLL_VIEW_INDICATOR_FLASHING_SPI) 601 [scrollView _flashScrollIndicators PersistingPreviousFlashes];613 [scrollView _flashScrollIndicatorsForAxes:axesForDelta(WebCore::FloatPoint(scrollView.contentOffset) - contentOffset) persistingPreviousFlashes:YES]; 602 614 #else 603 615 [scrollView _flashScrollIndicatorsPersistingPreviousFlashes:YES];
Note:
See TracChangeset
for help on using the changeset viewer.