Changeset 248174 in webkit
- Timestamp:
- Aug 2, 2019 1:09:06 PM (5 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r248166 r248174 1 2019-08-02 Jer Noble <jer.noble@apple.com> 2 3 [iPadOS] slides.google.com: Full Screen API warning is presented when swiping through slides 4 https://bugs.webkit.org/show_bug.cgi?id=200313 5 <rdar://problem/53777001> 6 7 Reviewed by Eric Carlson. 8 9 Only run the secheuristic scoring during UIGestureRecognizerStateEnded, rather than both 10 UIGestureRecognizerStateEnded and UIGestureRecognizerStateBegan. The goal of the heuristic is 11 to detect fake on-screen keyboards by detecting gestures that look like "typing". Using only 12 UIGestureRecognizerStateEnded still allows us to do this (as typing will usually have identical 13 geometries for both Ended and Began) without generating false-positives during swipe gestures. 14 15 * UIProcess/ios/fullscreen/WKFullScreenViewController.mm: 16 (-[WKFullScreenViewController _touchDetected:]): 17 1 18 2019-08-02 Wenson Hsieh <wenson_hsieh@apple.com> 2 19 -
trunk/Source/WebKit/UIProcess/ios/fullscreen/WKFullScreenViewController.mm
r244955 r248174 530 530 - (void)_touchDetected:(id)sender 531 531 { 532 if ([_touchGestureRecognizer state] == UIGestureRecognizerState Began || [_touchGestureRecognizer state] == UIGestureRecognizerStateEnded) {532 if ([_touchGestureRecognizer state] == UIGestureRecognizerStateEnded) { 533 533 double score = _secheuristic.scoreOfNextTouch([_touchGestureRecognizer locationInView:self.view]); 534 534 if (score > requiredScore)
Note: See TracChangeset
for help on using the changeset viewer.