Rename _ol_MapBrowserEventType_ to MapBrowserEventType
This commit is contained in:
committed by
Frederic Junod
parent
465c248572
commit
039bde29cc
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
import {inherits} from '../index.js';
|
||||
import _ol_Feature_ from '../Feature.js';
|
||||
import _ol_MapBrowserEventType_ from '../MapBrowserEventType.js';
|
||||
import MapBrowserEventType from '../MapBrowserEventType.js';
|
||||
import _ol_Object_ from '../Object.js';
|
||||
import _ol_coordinate_ from '../coordinate.js';
|
||||
import _ol_events_ from '../events.js';
|
||||
@@ -325,16 +325,16 @@ _ol_interaction_Draw_.handleEvent = function(event) {
|
||||
this.freehand_ = this.mode_ !== _ol_interaction_Draw_.Mode_.POINT && this.freehandCondition_(event);
|
||||
var pass = true;
|
||||
if (this.freehand_ &&
|
||||
event.type === _ol_MapBrowserEventType_.POINTERDRAG &&
|
||||
event.type === MapBrowserEventType.POINTERDRAG &&
|
||||
this.sketchFeature_ !== null) {
|
||||
this.addToDrawing_(event);
|
||||
pass = false;
|
||||
} else if (this.freehand_ &&
|
||||
event.type === _ol_MapBrowserEventType_.POINTERDOWN) {
|
||||
event.type === MapBrowserEventType.POINTERDOWN) {
|
||||
pass = false;
|
||||
} else if (event.type === _ol_MapBrowserEventType_.POINTERMOVE) {
|
||||
} else if (event.type === MapBrowserEventType.POINTERMOVE) {
|
||||
pass = this.handlePointerMove_(event);
|
||||
} else if (event.type === _ol_MapBrowserEventType_.DBLCLICK) {
|
||||
} else if (event.type === MapBrowserEventType.DBLCLICK) {
|
||||
pass = false;
|
||||
}
|
||||
return _ol_interaction_Pointer_.handleEvent.call(this, event) && pass;
|
||||
|
||||
Reference in New Issue
Block a user