mirror of
https://github.com/motion-canvas/motion-canvas.git
synced 2026-01-11 14:57:56 -05:00
fix(ui): prevent context menu in viewport (#123)
This commit is contained in:
@@ -137,6 +137,9 @@ export function View() {
|
||||
<div
|
||||
className={styles.viewport}
|
||||
ref={containerRef}
|
||||
onContextMenu={event => {
|
||||
event.preventDefault();
|
||||
}}
|
||||
onMouseDown={event => {
|
||||
if (event.button === 0 && !event.shiftKey) {
|
||||
if (!isInspectable(scene)) return;
|
||||
|
||||
Reference in New Issue
Block a user