Bug 1082880: Fix a typo introduced in bug 979835. r=me
authorKyle Huey <khuey@kylehuey.com>
Tue, 14 Oct 2014 16:15:43 -0700
changeset 210465 7ac94f68aa7569f93e469c6824a11ada87ab643d
parent 210464 33aa799d4fe25af5d7af729d4b9ecffc40b1735a
child 210466 d0e6c1ac03918a153e9b2c5d3df0b2280d57da09
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersme
bugs1082880, 979835
milestone36.0a1
Bug 1082880: Fix a typo introduced in bug 979835. r=me
browser/components/places/content/sidebarUtils.js
--- a/browser/components/places/content/sidebarUtils.js
+++ b/browser/components/places/content/sidebarUtils.js
@@ -22,17 +22,17 @@ var SidebarUtils = {
       // (i.e., starting from the left and right sides in LTR and RTL modes,
       // respectively.)  Therefore, we make sure to exclude the blank area
       // before the tree item icon (that is, to the left or right of it in
       // LTR and RTL modes, respectively) from the click target area.
       var isRTL = window.getComputedStyle(aTree, null).direction == "rtl";
       if (isRTL)
         mouseInGutter = aEvent.clientX > rect.x;
       else
-        mouseInGutter = aEvent.clientX < rect.y;
+        mouseInGutter = aEvent.clientX < rect.x;
     }
 
 #ifdef XP_MACOSX
     var modifKey = aEvent.metaKey || aEvent.shiftKey;
 #else
     var modifKey = aEvent.ctrlKey || aEvent.shiftKey;
 #endif