mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 05:30:35 +02:00
Fix TypeError from race condition between resetting and using
transforms.
This commit is contained in:
@@ -123,7 +123,7 @@ iD.Map = function() {
|
||||
projection
|
||||
.translate(d3.event.translate)
|
||||
.scale(d3.event.scale);
|
||||
if (fast) {
|
||||
if (fast && translateStart) {
|
||||
var a = d3.event.translate,
|
||||
b = translateStart,
|
||||
translate = 'translate(' + ~~(a[0] - b[0]) + 'px,' +
|
||||
|
||||
Reference in New Issue
Block a user