trigger(element, sensorEvent) {
    const event = document.createEvent('Event');
    event.detail = sensorEvent;
    event.initEvent(sensorEvent.type, true, true);
    element.dispatchEvent(event);
    this.lastEvent = sensorEvent;

    return sensorEvent;
  }
Triggers event on target element
@param {HTMLElement} element - Element to trigger event on
@param {SensorEvent} sensorEvent - Sensor event to trigger