Prevent default on dbltap.
This commit is contained in:
Родитель
7d813c96e1
Коммит
f281e7c296
|
@ -1244,6 +1244,7 @@ d3 = function() {
|
||||||
var p = touches[0], l = location(touches[0]);
|
var p = touches[0], l = location(touches[0]);
|
||||||
scaleTo(scale * 2);
|
scaleTo(scale * 2);
|
||||||
translateTo(p, l);
|
translateTo(p, l);
|
||||||
|
d3_eventPreventDefault();
|
||||||
dispatch(event_);
|
dispatch(event_);
|
||||||
}
|
}
|
||||||
touchtime = now;
|
touchtime = now;
|
||||||
|
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -140,6 +140,7 @@ d3.behavior.zoom = function() {
|
||||||
var p = touches[0], l = location(touches[0]);
|
var p = touches[0], l = location(touches[0]);
|
||||||
scaleTo(scale * 2);
|
scaleTo(scale * 2);
|
||||||
translateTo(p, l);
|
translateTo(p, l);
|
||||||
|
d3_eventPreventDefault();
|
||||||
dispatch(event_);
|
dispatch(event_);
|
||||||
}
|
}
|
||||||
touchtime = now;
|
touchtime = now;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче