[iOS] remove "enter optimized fullscreen" gesture
authoreric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 5 Dec 2014 19:31:28 +0000 (19:31 +0000)
committereric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 5 Dec 2014 19:31:28 +0000 (19:31 +0000)
https://bugs.webkit.org/show_bug.cgi?id=139301

Reviewed by Jer Noble.

* Modules/mediacontrols/mediaControlsiOS.js:
(ControllerIOS.prototype.handleWrapperTouchStart): Remove gesture recognizer.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@176857 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/Modules/mediacontrols/mediaControlsiOS.js

index 8e1223b..0658565 100644 (file)
@@ -1,3 +1,13 @@
+2014-12-05  Eric Carlson  <eric.carlson@apple.com>
+
+        [iOS] remove "enter optimized fullscreen" gesture
+        https://bugs.webkit.org/show_bug.cgi?id=139301
+
+        Reviewed by Jer Noble.
+
+        * Modules/mediacontrols/mediaControlsiOS.js:
+        (ControllerIOS.prototype.handleWrapperTouchStart): Remove gesture recognizer.
+
 2014-12-05  Beth Dakin  <bdakin@apple.com>
 
         rdar://problem/19156353 Additional build-fixes needed.
index 8fbe66a..40cd961 100644 (file)
@@ -366,23 +366,6 @@ ControllerIOS.prototype = {
 
         this.mostRecentNumberOfTargettedTouches = event.targetTouches.length;
         
-        if (this.host.optimizedFullscreenSupported) {
-            if (this.mostRecentNumberOfTargettedTouches == 2) {
-                var now = new Date();
-                if (this.lastDoubleTouchTime === undefined) {
-                    this.lastDoubleTouchTime = now;
-                } else {
-                    var doubleTouchIntervalThresholdms = 300
-                    if (now - this.lastDoubleTouchTime < doubleTouchIntervalThresholdms) {
-                        delete this.lastDoubleTouchTime;
-                        event.preventDefault();
-                        this.host.enterFullscreenOptimized();
-                    } else
-                        this.lastDoubleTouchTime = now;
-                }
-            }
-        }
-        
         if (this.controlsAreHidden()) {
             this.showControls();
             if (this.hideTimer)