mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 09:15:15 +02:00
Avoid starting the vc item's movement on right click
This commit is contained in:
parent
91fbe8672b
commit
bcada645fc
@ -538,6 +538,9 @@ export function addMovementListener(
|
||||
document.body.style.userSelect = "auto";
|
||||
};
|
||||
const handleStart = (e: MouseEvent) => {
|
||||
// Avoid starting the movement on right click.
|
||||
if (e.button === 2) return;
|
||||
|
||||
e.stopPropagation();
|
||||
|
||||
// Disable the drag temporarily.
|
||||
|
Loading…
x
Reference in New Issue
Block a user