Node graph: Fix context menu position after scrolling (#112374)
Use scrollY in calculation for node context menu top value
This commit is contained in:
@@ -83,7 +83,7 @@ function makeContextMenu(
|
||||
renderMenuItems={renderer}
|
||||
onClose={() => setMenu(undefined)}
|
||||
x={event.pageX}
|
||||
y={event.pageY}
|
||||
y={event.pageY - window.scrollY}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user