Skip to content

Commit

Permalink
Fix flip editor context menu position (#858)
Browse files Browse the repository at this point in the history
  • Loading branch information
videnaio authored Nov 4, 2022
1 parent 4254e24 commit 148364a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion renderer/screens/flips/components/flip-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]) {
Expand Down

0 comments on commit 148364a

Please sign in to comment.