Bug 858556 - Double clicking text with the mouse displays the selection grippers in Immersive mode. r=bbondy
authorJim Mathies <jmathies@mozilla.com>
Thu, 28 Mar 2013 21:29:55 -0400
changeset 127847 e27ce27cd6e148753610b59bca743f2134f62b54
parent 127846 855ddcd081e82ced8a378c8bad67a8a6445906b3
child 127848 e640b1edc504c4dcd86ba600a04b653d310b20b2
push id24513
push userphilringnalda@gmail.com
push dateSat, 06 Apr 2013 03:53:52 +0000
treeherdermozilla-central@768af8d8fad4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbbondy
bugs858556
milestone23.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 858556 - Double clicking text with the mouse displays the selection grippers in Immersive mode. r=bbondy
browser/metro/base/content/input.js
--- a/browser/metro/base/content/input.js
+++ b/browser/metro/base/content/input.js
@@ -141,17 +141,19 @@ var TouchModule = {
           case "touchend":
             this._onTouchEnd(aEvent);
             break;
           case "dblclick":
             // XXX This will get picked up somewhere below us for "double tap to zoom"
             // once we get omtc and the apzc. Currently though dblclick is delivered to
             // content and triggers selection of text, so fire up the SelectionHelperUI
             // once selection is present.
-            if (!SelectionHelperUI.isActive && !FindHelperUI.isActive) {
+            if (!InputSourceHelper.isPrecise &&
+                !SelectionHelperUI.isActive &&
+                !FindHelperUI.isActive) {
               setTimeout(function () {
                 SelectionHelperUI.attachEditSession(Browser.selectedTab.browser,
                                                     aEvent.clientX, aEvent.clientY);
               }, 50);
             }
             break;
         }
       }