Skip to content

🎥 Make videos programmatically with React

do not move guide on right click

Jonny Burgerdad9781ddaad
diff --git a/packages/cli/src/editor/components/EditorGuides/Guide.tsx b/packages/cli/src/editor/components/EditorGuides/Guide.tsx
index f98f25a84a..9a6997a7f2 100644
--- a/packages/cli/src/editor/components/EditorGuides/Guide.tsx
+++ b/packages/cli/src/editor/components/EditorGuides/Guide.tsx
@@ -52,6 +52,10 @@ const GuideComp: React.FC<{
const onMouseDown = useCallback(
(e: React.MouseEvent<HTMLDivElement, MouseEvent>) => {
e.preventDefault();
+ if (e.button !== 0) {
+ return;
+ }
+
shouldCreateGuideRef.current = true;
document.body.style.cursor = 'no-drop';
setSelectedGuideIndex(() => guide.id);