Title: [251682] trunk/Source/WebInspectorUI
- Revision
- 251682
- Author
- [email protected]
- Date
- 2019-10-28 16:24:48 -0700 (Mon, 28 Oct 2019)
Log 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):
Modified Paths
Diff
Modified: trunk/Source/WebInspectorUI/ChangeLog (251681 => 251682)
--- trunk/Source/WebInspectorUI/ChangeLog 2019-10-28 23:12:31 UTC (rev 251681)
+++ trunk/Source/WebInspectorUI/ChangeLog 2019-10-28 23:24:48 UTC (rev 251682)
@@ -1,3 +1,13 @@
+2019-10-28 Nikita Vasilyev <[email protected]>
+
+ 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):
+
2019-10-28 Antoine Quint <[email protected]>
CSS Transitions and CSS Animations properties should treat unitless 0 as an invalid value for times
Modified: trunk/Source/WebInspectorUI/UserInterface/Views/ColorSquare.js (251681 => 251682)
--- trunk/Source/WebInspectorUI/UserInterface/Views/ColorSquare.js 2019-10-28 23:12:31 UTC (rev 251681)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/ColorSquare.js 2019-10-28 23:24:48 UTC (rev 251682)
@@ -149,6 +149,9 @@
_handleMousedown(event)
{
+ if (event.button !== 0 || event.ctrlKey)
+ return;
+
window.addEventListener("mousemove", this, true);
window.addEventListener("mouseup", this, true);
this._updateColorForMouseEvent(event);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes