function (enabled) {
    var sceneEl = this.el.sceneEl;

    function enableGrabCursor () { sceneEl.canvas.classList.add('a-grab-cursor'); }
    function disableGrabCursor () { sceneEl.canvas.classList.remove('a-grab-cursor'); }

    if (!sceneEl.canvas) {
      if (enabled) {
        sceneEl.addEventListener('render-target-loaded', enableGrabCursor);
      } else {
        sceneEl.addEventListener('render-target-loaded', disableGrabCursor);
      }
      return;
    }

    if (enabled) {
      enableGrabCursor();
      return;
    }
    disableGrabCursor();
  }
function (enabled) {
    var sceneEl = this.el.sceneEl;

    function enableGrabCursor () { sceneEl.canvas.classList.add('a-grab-cursor'); }
    function disableGrabCursor () { sceneEl.canvas.classList.remove('a-grab-cursor'); }

    if (!sceneEl.canvas) {
      if (enabled) {
        sceneEl.addEventListener('render-target-loaded', enableGrabCursor);
      } else {
        sceneEl.addEventListener('render-target-loaded', disableGrabCursor);
      }
      return;
    }

    if (enabled) {
      enableGrabCursor();
      return;
    }
    disableGrabCursor();
  }
function ( enabled ) { var sceneEl = this . el . sceneEl ; function enableGrabCursor ( ) { sceneEl . canvas . classList . add ( 'a-grab-cursor' ) ; } function disableGrabCursor ( ) { sceneEl . canvas . classList . remove ( 'a-grab-cursor' ) ; } if ( ! sceneEl . canvas ) { if ( enabled ) { sceneEl . addEventListener ( 'render-target-loaded' , enableGrabCursor ) ; } else { sceneEl . addEventListener ( 'render-target-loaded' , disableGrabCursor ) ; } return ; } if ( enabled ) { enableGrabCursor ( ) ; return ; } disableGrabCursor ( ) ; }
Toggle the feature of showing/hiding the grab cursor.
Toggle the feature of showing / hiding the grab cursor .
Enable or disable grabbing cursor