mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 09:18:42 +09:00
Issue #2515 - Guard devtools click handlers against non-primary clicks.
We only want clicks on HTML elements to respond to the primary button.
This commit is contained in:
parent
bd439689e1
commit
9b56867901
5 changed files with 16 additions and 1 deletions
|
|
@ -1480,6 +1480,9 @@ Column.prototype = {
|
|||
* for sorting.
|
||||
*/
|
||||
onClick: function (event) {
|
||||
if (event.button != 0) {
|
||||
return;
|
||||
}
|
||||
let target = event.originalTarget;
|
||||
|
||||
if (target.nodeType !== target.ELEMENT_NODE || target == this.column) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue