Changeset 189944 in webkit
- Timestamp:
- Sep 17, 2015 4:30:19 PM (9 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r189932 r189944 1 2015-09-17 Beth Dakin <bdakin@apple.com> 2 3 Heavy taps on links are sometimes interpreted as the preview gesture 4 https://bugs.webkit.org/show_bug.cgi?id=149304 5 -and corresponding- 6 rdar://problem/22689258 7 8 Reviewed by Tim Horton. 9 10 If the preview gesture starts and stop and less than 250 milliseconds have 11 passed, then call _attemptClickAtLocation to treat it as a normal tap. 12 * UIProcess/ios/WKContentViewInteraction.h: 13 * UIProcess/ios/WKContentViewInteraction.mm: 14 (-[WKContentView _interactionShouldBeginFromPreviewItemController:forPosition:]): 15 (-[WKContentView _interactionStartedFromPreviewItemController:]): 16 (-[WKContentView _interactionStoppedFromPreviewItemController:]): 17 1 18 2015-09-17 Tim Horton <timothy_horton@apple.com> 2 19 -
trunk/Source/WebKit2/UIProcess/ios/WKContentViewInteraction.h
r188053 r189944 159 159 BOOL _inspectorNodeSearchEnabled; 160 160 BOOL _didAccessoryTabInitiateFocus; 161 162 std::chrono::steady_clock::time_point _lastPreviewStartTime; 161 163 } 162 164 -
trunk/Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm
r189748 r189944 3239 3239 - (BOOL)_interactionShouldBeginFromPreviewItemController:(UIPreviewItemController *)controller forPosition:(CGPoint)position 3240 3240 { 3241 _lastPreviewStartTime = std::chrono::steady_clock::now(); 3242 3241 3243 if (!_highlightLongPressCanClick) 3242 3244 return NO; … … 3384 3386 - (void)_interactionStoppedFromPreviewItemController:(UIPreviewItemController *)controller 3385 3387 { 3388 std::chrono::milliseconds elapsedTime = std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::steady_clock::now() - _lastPreviewStartTime); 3389 if (elapsedTime <= 250_ms) 3390 [self _attemptClickAtLocation:_positionInformation.point]; 3391 3386 3392 [self _addDefaultGestureRecognizers]; 3387 3393
Note: See TracChangeset
for help on using the changeset viewer.