Skip to content

Commit 5c5ea0c

Browse files
committed
Reset dragging state on DirectSelect#onStop
1 parent 3f2ae37 commit 5c5ea0c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/modes/direct_select.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,10 @@ DirectSelect.onSetup = function(opts) {
150150
return state;
151151
};
152152

153-
DirectSelect.onStop = function() {
153+
DirectSelect.onStop = function(state) {
154154
doubleClickZoom.enable(this);
155155
this.clearSelectedCoordinates();
156+
this.stopDragging(state);
156157
};
157158

158159
DirectSelect.toDisplayFeatures = function(state, geojson, push) {

0 commit comments

Comments
 (0)