mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-17 22:24:49 +02:00
Avoid style recalculation in resetTransform
This commit is contained in:
@@ -139,10 +139,10 @@ iD.Map = function(context) {
|
||||
}
|
||||
|
||||
function resetTransform() {
|
||||
var prop = surface.style(transformProp);
|
||||
var prop = surface.node().style[transformProp];
|
||||
if (!prop || prop === 'none') return false;
|
||||
surface.style(transformProp, '');
|
||||
tilegroup.style(transformProp, '');
|
||||
surface.node().style[transformProp] = '';
|
||||
tilegroup.node().style[transformProp] = '';
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user