Bug 1399180 - select devtools tab on mousedown rather than on click;r=gl draft
authorJulian Descottes <jdescottes@mozilla.com>
Tue, 12 Sep 2017 18:35:38 +0200
changeset 663130 9a39511e67be1d01014ab4c6e29c1019b57b2c14
parent 662980 b0e945eed81db8bf076daf64e381c514f70144f0
child 731108 99b9d32a241380761f78842773de1be37547bf03
push id79337
push userjdescottes@mozilla.com
push dateTue, 12 Sep 2017 17:38:46 +0000
reviewersgl
bugs1399180
milestone57.0a1
Bug 1399180 - select devtools tab on mousedown rather than on click;r=gl MozReview-Commit-ID: 8m3pS4ZRJ73
devtools/client/framework/components/toolbox-tab.js
--- a/devtools/client/framework/components/toolbox-tab.js
+++ b/devtools/client/framework/components/toolbox-tab.js
@@ -48,17 +48,17 @@ module.exports = createClass({
       {
         className,
         id: `toolbox-tab-${id}`,
         "data-id": id,
         title: tooltip,
         type: "button",
         tabIndex: focusedButton === id ? "0" : "-1",
         onFocus: () => focusButton(id),
-        onClick: () => selectTool(id),
+        onMouseDown: () => selectTool(id),
       },
       span(
         {
           className: "devtools-tab-line"
         }
       ),
       ...this.renderIcon(panelDefinition, isHighlighted),
       iconOnly ?