| 94891 | } |
| 94892 | } |
| 94893 | handleMoveEvent(event) { |
| 94894 | if (this.enableMoveEvent) switch(event.type){ |
| 94895 | case "mousedown": |
| 94896 | if (event.button >= 0) // Button is down |
| 94897 | this.pressed = true; |
| 94898 | break; |
| 94899 | case "mousemove": |
| 94900 | // Move events use `which` to track the button being pressed |
| 94901 | if (event.which === 0) // Button is not down |
| 94902 | this.pressed = false; |
| 94903 | if (!this.pressed) // Drag events are emitted by hammer already |
| 94904 | // we just need to emit the move event on hover |
| 94905 | this._emit(MOVE_EVENT_TYPE, event); |
| 94906 | break; |
| 94907 | case "mouseup": |
| 94908 | this.pressed = false; |
| 94909 | break; |
| 94910 | default: |
| 94911 | } |
| 94912 | } |
| 94913 | _emit(type, event) { |
| 94914 | this.callback({ |
| 94915 | type, |