()
| 114 | } |
| 115 | |
| 116 | protected $bind(): void { |
| 117 | if (!this.$onPointerDown) { |
| 118 | this.$onPointerDown = this.$handlePointerDown.bind(this); |
| 119 | on(this, EVENT_POINTER_DOWN, this.$onPointerDown); |
| 120 | } |
| 121 | |
| 122 | if (!this.$onPointerMove) { |
| 123 | this.$onPointerMove = this.$handlePointerMove.bind(this); |
| 124 | on(this.ownerDocument, EVENT_POINTER_MOVE, this.$onPointerMove); |
| 125 | } |
| 126 | |
| 127 | if (!this.$onPointerUp) { |
| 128 | this.$onPointerUp = this.$handlePointerUp.bind(this); |
| 129 | on(this.ownerDocument, EVENT_POINTER_UP, this.$onPointerUp); |
| 130 | } |
| 131 | |
| 132 | if (!this.$onWheel) { |
| 133 | this.$onWheel = this.$handleWheel.bind(this); |
| 134 | on(this, EVENT_WHEEL, this.$onWheel, { |
| 135 | passive: false, |
| 136 | capture: true, |
| 137 | }); |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | protected $unbind(): void { |
| 142 | if (this.$onPointerDown) { |
no test coverage detected