mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 05:30:35 +02:00
Add URL flag for translate3d
This commit is contained in:
@@ -143,6 +143,9 @@ iD.Map = function(context) {
|
||||
surface.selectAll('.layer *').remove();
|
||||
}
|
||||
|
||||
var translate3d = !iD.detect().opera &&
|
||||
iD.util.stringQs(location.search.substring(1)).translate3d !== '0';
|
||||
|
||||
function zoomPan() {
|
||||
if (d3.event && d3.event.sourceEvent.type === 'dblclick') {
|
||||
if (!dblclickEnabled) {
|
||||
@@ -172,9 +175,9 @@ iD.Map = function(context) {
|
||||
|
||||
var transform =
|
||||
'scale(' + scale + ')' +
|
||||
(iD.detect().opera ?
|
||||
'translate(' + tX + 'px,' + tY + 'px)' :
|
||||
'translate3d(' + tX + 'px,' + tY + 'px, 0)');
|
||||
(translate3d ?
|
||||
'translate3d(' + tX + 'px,' + tY + 'px, 0)' :
|
||||
'translate(' + tX + 'px,' + tY + 'px)');
|
||||
|
||||
transformed = true;
|
||||
supersurface.style(transformProp, transform);
|
||||
|
||||
Reference in New Issue
Block a user