File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import GeoJsonMixin from './ExtentMixin.vue';
11
11
import GeocoderMixin from ' ./GeocoderMixin.vue' ;
12
12
import MapMixin from ' ./MapMixin.vue' ;
13
13
import Utils from ' ../../utils.js' ;
14
+ import {shiftKeyOnly } from ' ol/events/condition.js' ;
14
15
import ExtentInteraction from ' ol/interaction/Extent' ;
15
16
import { transformExtent } from ' ol/proj' ;
16
17
import { containsXY } from ' ol/extent' ;
@@ -157,14 +158,13 @@ export default {
157
158
else if (this .interaction .handlingDownUpSequence || this .interaction .snapToVertex_ (event .pixel , event .map )) {
158
159
return true ;
159
160
}
160
- return false ;
161
+ return shiftKeyOnly ( event ) ;
161
162
};
162
163
163
164
this .interaction = new ExtentInteraction ({
164
165
extent: this .projectedExtent ,
165
166
condition,
166
- boxStyle: createDefaultStyle (),
167
- pixelTolerance: 15
167
+ boxStyle: createDefaultStyle ()
168
168
});
169
169
170
170
if (this .editable ) {
You can’t perform that action at this time.
0 commit comments