mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-16 13:59:27 +02:00
fix pan/zoom lags in Chrome before/after move
Previously, the surface switched between HW-accelerated and non-accelerated state due to resetting transform property to ‘’ (while translate3d triggers HW), which caused lags in Chrone
This commit is contained in:
committed by
John Firebaugh
parent
5aa1a2a45f
commit
da3bf77c35
@@ -194,7 +194,7 @@ iD.Map = function(context) {
|
||||
|
||||
function resetTransform() {
|
||||
if (!transformed) return false;
|
||||
supersurface.style(transformProp, '');
|
||||
supersurface.style(transformProp, iD.detect().opera ? '' : 'translate3d(0,0,0)');
|
||||
transformed = false;
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user