Fix context menu right click logic

This commit is contained in:
Tanish Manku committed 2025-02-25 02:41:54 -08:00
1 parent ef8b308cf0
commit d385ddb188
1 file changed
+2 -2
@@ -166,7 +166,7 @@ export abstract class BaseNode {
// https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/which
// 3: Right mouse button
// If right click, let context event handle it
if (e.evt.button === 3) {
if (e.evt.button === 2) {
return;
}
@@ -182,7 +182,7 @@ export abstract class BaseNode {
// https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/which
// 3: Right mouse button
// If right click, let context event handle it
if (e.evt.button === 3) {
if (e.evt.button === 2) {
return;
}