Remove offsets from mouse position calculation
Fixes #10073 Remove unneeded offsets from mouse position calculation as box position was centered in #9919
This commit is contained in:
1 parent
92f70c225f
commit
8a04f5059d
1 file changed
+2
-2
@@ -216,8 +216,8 @@ class OverviewMap extends Control {
|
||||
|
||||
const computeDesiredMousePosition = function(mousePosition) {
|
||||
return {
|
||||
clientX: mousePosition.clientX - (overlayBox.offsetWidth / 2),
|
||||
clientY: mousePosition.clientY + (overlayBox.offsetHeight / 2)
|
||||
clientX: mousePosition.clientX,
|
||||
clientY: mousePosition.clientY
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user