Named exports from ol/events/Event

This commit is contained in:
Tim Schaub
2018-02-18 22:50:32 -07:00
parent 4106ed8776
commit a480b0065b
4 changed files with 13 additions and 15 deletions

View File

@@ -7,7 +7,7 @@ import Control from '../control/Control.js';
import {CLASS_CONTROL, CLASS_UNSELECTABLE} from '../css.js';
import {easeOut} from '../easing.js';
import {listen} from '../events.js';
import Event from '../events/Event.js';
import {stopPropagation} from '../events/Event.js';
import EventType from '../events/EventType.js';
import {clamp} from '../math.js';
import PointerEventType from '../pointer/EventType.js';
@@ -130,10 +130,8 @@ const ZoomSlider = function(opt_options) {
listen(this.dragger_, PointerEventType.POINTERUP,
this.handleDraggerEnd_, this);
listen(containerElement, EventType.CLICK,
this.handleContainerClick_, this);
listen(thumbElement, EventType.CLICK,
Event.stopPropagation);
listen(containerElement, EventType.CLICK, this.handleContainerClick_, this);
listen(thumbElement, EventType.CLICK, stopPropagation);
Control.call(this, {
element: containerElement,