mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-21 07:46:58 +02:00
fix mouse position calculation on RTL layout
This commit is contained in:
@@ -174,6 +174,9 @@ export function utilFastMouse(container) {
|
||||
rectTop = rect.top,
|
||||
clientLeft = +container.clientLeft,
|
||||
clientTop = +container.clientTop;
|
||||
if (iD.detect().textDirection === 'rtl') {
|
||||
rectLeft = 0;
|
||||
}
|
||||
return function(e) {
|
||||
return [
|
||||
e.clientX - rectLeft - clientLeft,
|
||||
|
||||
Reference in New Issue
Block a user