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:
@@ -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