src/components/cursor.js
function (evt) {
    // Raycast again for touch.
    if (this.data.rayOrigin === 'mouse' && evt.type === 'touchstart') {
      this.onMouseMove(evt);
      this.el.components.raycaster.checkIntersections();
      evt.preventDefault();
    }

    this.twoWayEmit(EVENTS.MOUSEDOWN);
    this.cursorDownEl = this.intersectedEl;
  }
function (evt) {
    // Raycast again for touch.
    if (this.data.rayOrigin === 'mouse' && evt.type === 'touchstart') {
      this.onMouseMove(evt);
      this.el.components.raycaster.checkIntersections();
      evt.preventDefault();
    }

    this.twoWayEmit(EVENTS.MOUSEDOWN);
    this.cursorDownEl = this.intersectedEl;
  }
function ( evt ) { // Raycast again for touch. if ( this . data . rayOrigin === 'mouse' && evt . type === 'touchstart' ) { this . onMouseMove ( evt ) ; this . el . components . raycaster . checkIntersections ( ) ; evt . preventDefault ( ) ; } this . twoWayEmit ( EVENTS . MOUSEDOWN ) ; this . cursorDownEl = this . intersectedEl ; }
Trigger mousedown and keep track of the mousedowned entity.
Trigger mousedown and keep track of the mousedowned entity .