Avoid starting the vc item's movement on right click

This commit is contained in:
Alejandro Gallardo Escobar 2019-08-09 11:35:29 +02:00
parent 91fbe8672b
commit bcada645fc

View File

@ -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.