From 148364a958ffb1ce7e5c7d3063bda594b8a826de Mon Sep 17 00:00:00 2001 From: videnaio <80450656+videnaio@users.noreply.github.com> Date: Fri, 4 Nov 2022 19:00:03 +0500 Subject: [PATCH] Fix flip editor context menu position (#858) --- renderer/screens/flips/components/flip-editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderer/screens/flips/components/flip-editor.js b/renderer/screens/flips/components/flip-editor.js index f32a26e85..ab4b19bac 100644 --- a/renderer/screens/flips/components/flip-editor.js +++ b/renderer/screens/flips/components/flip-editor.js @@ -505,7 +505,7 @@ export default function FlipEditor({ containerEl.parentElement.style.height = rem(328) containerEl.addEventListener('contextmenu', e => { e.preventDefault() - setContextMenuCursor({x: e.clientX, y: e.clientY}) + setContextMenuCursor({x: e.layerX, y: e.layerY}) setShowContextMenu(true) setRightMenuPanel(RightMenu.None) if (editors[idx]) {