From 12b42e8b33c54c94861f64a6d7f459d500435fec Mon Sep 17 00:00:00 2001 From: Kaarle Ritvanen Date: Thu, 2 Mar 2023 14:30:01 +0200 Subject: [PATCH] fix MouseEvent property names allowing zooming into recorded events --- web/skins/classic/views/js/event.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/skins/classic/views/js/event.js b/web/skins/classic/views/js/event.js index 9b1c8d14f..32de8ebcb 100644 --- a/web/skins/classic/views/js/event.js +++ b/web/skins/classic/views/js/event.js @@ -754,8 +754,8 @@ function handleClick(event) { var x = event.offsetX; var y = event.offsetY; } else { - var x = event.page.x - rect.left; - var y = event.page.y - rect.top; + var x = event.pageX - rect.left; + var y = event.pageY - rect.top; } if (event.shift || event.shiftKey) { // handle both jquery and mootools -- 2.39.2