function GrabToPan_activate() {
      if (!this.active) {
        this.active = true;
        this.element.addEventListener('mousedown', this._onmousedown, true);
        this.element.classList.add(this.CSS_CLASS_GRAB);
        if (this.onActiveChanged) {
          this.onActiveChanged(true);
        }
      }
    }
/**
     * Bind a mousedown event to the element to enable grab-detection.
     */
Bind a mousedown event to the element to enable grab-detection.
Bind a mousedown event to the element to enable grab - detection .
function GrabToPan_activate() {
      if (!this.active) {
        this.active = true;
        this.element.addEventListener('mousedown', this._onmousedown, true);
        this.element.classList.add(this.CSS_CLASS_GRAB);
        if (this.onActiveChanged) {
          this.onActiveChanged(true);
        }
      }
    }
function GrabToPan_activate ( ) { if ( ! this . active ) { this . active = true ; this . element . addEventListener ( 'mousedown' , this . _onmousedown , true ) ; this . element . classList . add ( this . CSS_CLASS_GRAB ) ; if ( this . onActiveChanged ) { this . onActiveChanged ( true ) ; } } }
Bind a mousedown event to the element to enable grab-detection.
Bind a mousedown event to the element to enable grab - detection .