mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-16 13:59:27 +02:00
Fix RTL mouse coordinate calculation issue
This commit is contained in:
@@ -431,10 +431,6 @@ export function utilFastMouse(container) {
|
||||
var rectTop = rect.top;
|
||||
var clientLeft = +container.clientLeft;
|
||||
var clientTop = +container.clientTop;
|
||||
|
||||
if (textDirection === 'rtl') {
|
||||
rectLeft = 0;
|
||||
}
|
||||
return function(e) {
|
||||
return [
|
||||
e.clientX - rectLeft - clientLeft,
|
||||
|
||||
Reference in New Issue
Block a user