Changeset 188541 in webkit
- Timestamp:
- Aug 17, 2015 1:39:04 PM (9 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r188526 r188541 1 2015-08-17 Wenson Hsieh <wenson_hsieh@apple.com> 2 3 Cannot change WKWebView scrollView deceleration rate 4 https://bugs.webkit.org/show_bug.cgi?id=148086 5 <rdar://problem/21893685> 6 7 Reviewed by Simon Fraser. 8 9 Updates the preferred scroll deceleration factor when the scrollView's decelerationRate is explicitly set by the 10 user, so when snap scrolling is inactive and [WKWebView scrollViewWillBeginDragging] sets its scrollView's 11 decelerationRate to the preferred decelerationRate, it will be set to the updated value. 12 13 * UIProcess/ios/WKScrollView.mm: 14 (-[WKScrollView setDecelerationRate:]): Overrides setDecelerationRate to update _preferredScrollDecelerationFactor. 15 1 16 2015-08-17 Timothy Horton <timothy_horton@apple.com> 2 17 -
trunk/Source/WebKit2/UIProcess/ios/WKScrollView.mm
r181488 r188541 268 268 } 269 269 270 - (void)setDecelerationRate:(CGFloat)decelerationRate 271 { 272 [super setDecelerationRate:decelerationRate]; 273 _preferredScrollDecelerationFactor = decelerationRate; 274 } 275 270 276 @end 271 277
Note: See TracChangeset
for help on using the changeset viewer.