Changeset 251682 in webkit


Ignore:
Timestamp:
Oct 28, 2019 4:24:48 PM (5 years ago)
Author:
Nikita Vasilyev
Message:

Web Inspector: Right-clicking in color picker should not select color
https://bugs.webkit.org/show_bug.cgi?id=203434

Reviewed by Devin Rousso.

  • UserInterface/Views/ColorSquare.js:

(WI.ColorSquare.prototype._handleMousedown):

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r251658 r251682  
     12019-10-28  Nikita Vasilyev  <nvasilyev@apple.com>
     2
     3        Web Inspector: Right-clicking in color picker should not select color
     4        https://bugs.webkit.org/show_bug.cgi?id=203434
     5
     6        Reviewed by Devin Rousso.
     7
     8        * UserInterface/Views/ColorSquare.js:
     9        (WI.ColorSquare.prototype._handleMousedown):
     10
    1112019-10-28  Antoine Quint  <graouts@apple.com>
    212
  • trunk/Source/WebInspectorUI/UserInterface/Views/ColorSquare.js

    r251487 r251682  
    150150    _handleMousedown(event)
    151151    {
     152        if (event.button !== 0 || event.ctrlKey)
     153            return;
     154
    152155        window.addEventListener("mousemove", this, true);
    153156        window.addEventListener("mouseup", this, true);
Note: See TracChangeset for help on using the changeset viewer.