mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-10 05:06:01 +00:00
Make restriction both space and time
This commit is contained in:
@@ -28,8 +28,8 @@ iD.behavior.Draw = function(context) {
|
||||
|
||||
d3.select(window).on('mouseup.draw', function() {
|
||||
target.on('mousemove.draw', mousemove);
|
||||
if (iD.geo.dist(pos, point()) < tolerance ||
|
||||
(+new Date() - time) < 500) {
|
||||
if (iD.geo.dist(pos, point()) < tolerance &&
|
||||
(+new Date() - time) < 1000) {
|
||||
click();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user