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:
Vladimir Agafonkin
2013-11-26 21:12:22 +02:00
committed by John Firebaugh
parent 5aa1a2a45f
commit da3bf77c35
+1 -1
View File
@@ -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;
}