diff --git a/src/ol/pointer/pointerevent.js b/src/ol/pointer/pointerevent.js index 004458a9a3..c9d1b60c02 100644 --- a/src/ol/pointer/pointerevent.js +++ b/src/ol/pointer/pointerevent.js @@ -257,13 +257,6 @@ ol.pointer.PointerEvent.prototype.getPressure_ = function(eventDict, buttons) { }; -/** - * Does the browser support the `MouseEvent` type? - * @type {boolean} - */ -ol.pointer.PointerEvent.NEW_MOUSE_EVENT = false; - - /** * Is the `buttons` property supported? * @type {boolean} @@ -272,12 +265,11 @@ ol.pointer.PointerEvent.HAS_BUTTONS = false; /** - * Checks if the `MouseEvent` type is supported. + * Checks if the `buttons` property is supported. */ (function() { try { var ev = ol.pointer.PointerEvent.createMouseEvent('click', {buttons: 1}); - ol.pointer.PointerEvent.NEW_MOUSE_EVENT = true; ol.pointer.PointerEvent.HAS_BUTTONS = ev.buttons === 1; } catch (e) { }