src/geometry/ext/Geometry.Events.js
function (event, type) {
        if (!this.getMap()) {
            return;
        }
        const eventType = type || this._getEventTypeToFire(event);
        if (eventType === 'contextmenu' && this.listens('contextmenu')) {
            stopPropagation(event);
            preventDefault(event);
        }
        const params = this._getEventParams(event);
        this._fireEvent(eventType, params);
    }
function (event, type) {
        if (!this.getMap()) {
            return;
        }
        const eventType = type || this._getEventTypeToFire(event);
        if (eventType === 'contextmenu' && this.listens('contextmenu')) {
            stopPropagation(event);
            preventDefault(event);
        }
        const params = this._getEventParams(event);
        this._fireEvent(eventType, params);
    }
function ( event , type ) { if ( ! this . getMap ( ) ) { return ; } const eventType = type || this . _getEventTypeToFire ( event ) ; if ( eventType === 'contextmenu' && this . listens ( 'contextmenu' ) ) { stopPropagation ( event ) ; preventDefault ( event ) ; } const params = this . _getEventParams ( event ) ; this . _fireEvent ( eventType , params ) ; }
The event handler for all the events.
@param  {Event} event - dom event
@private
The event handler for all the events .