mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-23 08:39:56 +02:00
Fix and cleanup all map easing transitions, now supports eased zoom, pan
This commit is contained in:
+4
-1
@@ -31,6 +31,7 @@ import { UndoRedo } from './undo_redo';
|
||||
import { Zoom } from './zoom';
|
||||
import { cmd } from './cmd';
|
||||
|
||||
|
||||
export function init(context) {
|
||||
function render(container) {
|
||||
var map = context.map();
|
||||
@@ -207,7 +208,9 @@ export function init(context) {
|
||||
function pan(d) {
|
||||
return function() {
|
||||
d3.event.preventDefault();
|
||||
if (!context.inIntro()) context.pan(d);
|
||||
if (!context.inIntro()) {
|
||||
context.pan(d, 100);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user