mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-14 09:42:56 +00:00
Fix map dragging and redrawing on touch
This commit is contained in:
@@ -400,13 +400,14 @@ iD.Map = function(elem, connection) {
|
||||
}
|
||||
}
|
||||
|
||||
surface.on('mouseup', function() {
|
||||
if (surface.style(transformProp)) {
|
||||
translateStart = null;
|
||||
surface.style(transformProp, '');
|
||||
redraw();
|
||||
}
|
||||
});
|
||||
function resetTransform() {
|
||||
if (!surface.style(transformProp)) return;
|
||||
translateStart = null;
|
||||
surface.style(transformProp, '');
|
||||
redraw();
|
||||
}
|
||||
|
||||
surface.on('mouseup', resetTransform).on('touchend', resetTransform);
|
||||
|
||||
function redraw(only) {
|
||||
if (!only) {
|
||||
|
||||
Reference in New Issue
Block a user