dist/pixi-graph.umd.js
/**
       * handle down events for viewport
       * @param {PIXI.InteractionEvent} event
       */
handle down events for viewport
@param {PIXI.InteractionEvent} event
handle down events for viewport @param { PIXI . InteractionEvent } event
down(event) {
          if (this.viewport.pause || !this.viewport.worldVisible) {
              return
          }
          if (event.data.pointerType === 'mouse') {
              this.isMouseDown = true;
          }
          else if (!this.get(event.data.pointerId)) {
              this.touches.push({ id: event.data.pointerId, last: null });
          }
          if (this.count() === 1) {
              this.last = event.data.global.clone();
              const decelerate = this.viewport.plugins.get('decelerate', true);
              const bounce = this.viewport.plugins.get('bounce', true);
              if ((!decelerate || !decelerate.isActive()) && (!bounce || !bounce.isActive())) {
                  this.clickedAvailable = true;
              }
              else {
                  this.clickedAvailable = false;
              }
          }
          else {
              this.clickedAvailable = false;
          }
          const stop = this.viewport.plugins.down(event);
          if (stop && this.viewport.options.stopPropagation) {
              event.stopPropagation();
          }
      }
down ( event ) { if ( this . viewport . pause || ! this . viewport . worldVisible ) { return } if ( event . data . pointerType === 'mouse' ) { this . isMouseDown = true ; } else if ( ! this . get ( event . data . pointerId ) ) { this . touches . push ( { id : event . data . pointerId , last : null } ) ; } if ( this . count ( ) === 1 ) { this . last = event . data . global . clone ( ) ; const decelerate = this . viewport . plugins . get ( 'decelerate' , true ) ; const bounce = this . viewport . plugins . get ( 'bounce' , true ) ; if ( ( ! decelerate || ! decelerate . isActive ( ) ) && ( ! bounce || ! bounce . isActive ( ) ) ) { this . clickedAvailable = true ; } else { this . clickedAvailable = false ; } } else { this . clickedAvailable = false ; } const stop = this . viewport . plugins . down ( event ) ; if ( stop && this . viewport . options . stopPropagation ) { event . stopPropagation ( ) ; } }
handle down events for viewport
 @param {PIXI.InteractionEvent} event
handle down events for viewport @param { PIXI . InteractionEvent } event
// clicked event does not fire if viewport is decelerating or bouncing
