Skip to content

Commit

Permalink
Double-click to zoom (fixes #205)
Browse files Browse the repository at this point in the history
  • Loading branch information
alukach committed Nov 2, 2015
1 parent 247b75e commit 885ba80
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/js/layerlist.dropchop.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ var dropchop = (function(dc) {
}
});

layerDiv.on('dblclick', function(event) {
dc.ops.file.extent.execute();
});

layerlistItem.append(layerDiv);
layerlistItem.append(checkbox);
layerlistItem.append(layerType);
Expand Down

0 comments on commit 885ba80

Please sign in to comment.