diff --git a/frontends/etiquette_flask/static/js/contextmenus.js b/frontends/etiquette_flask/static/js/contextmenus.js index aa881b8..3f7358d 100644 --- a/frontends/etiquette_flask/static/js/contextmenus.js +++ b/frontends/etiquette_flask/static/js/contextmenus.js @@ -35,8 +35,8 @@ function show_menu(event, menu) const html = document.documentElement; const over_right = Math.max(0, event.clientX + menu.offsetWidth - html.clientWidth); const over_bottom = Math.max(0, event.clientY + menu.offsetHeight - html.clientHeight); - const left = event.pageX - over_right; - const top = event.pageY - over_bottom; + const left = event.clientX - over_right; + const top = event.clientY - over_bottom; menu.style.left = left + "px"; menu.style.top = top + "px"; }