File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 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';
1111import GeocoderMixin from ' ./GeocoderMixin.vue' ;
1212import MapMixin from ' ./MapMixin.vue' ;
1313import Utils from ' ../../utils.js' ;
14+ import {shiftKeyOnly } from ' ol/events/condition.js' ;
1415import ExtentInteraction from ' ol/interaction/Extent' ;
1516import { transformExtent } from ' ol/proj' ;
1617import { containsXY } from ' ol/extent' ;
@@ -157,14 +158,13 @@ export default {
157158 else if (this .interaction .handlingDownUpSequence || this .interaction .snapToVertex_ (event .pixel , event .map )) {
158159 return true ;
159160 }
160- return false ;
161+ return shiftKeyOnly ( event ) ;
161162 };
162163
163164 this .interaction = new ExtentInteraction ({
164165 extent: this .projectedExtent ,
165166 condition,
166- boxStyle: createDefaultStyle (),
167- pixelTolerance: 15
167+ boxStyle: createDefaultStyle ()
168168 });
169169
170170 if (this .editable ) {
You can’t perform that action at this time.
0 commit comments