()
| 214 | this.docTarget?.addEventListener("mouseleave", this._onDocumentLeave); |
| 215 | } |
| 216 | dispose() { |
| 217 | if (this.listenerTarget) { |
| 218 | this.listenerTarget.removeEventListener( |
| 219 | "mousemove", |
| 220 | this._onMouseMove |
| 221 | ); |
| 222 | this.listenerTarget.removeEventListener( |
| 223 | "touchstart", |
| 224 | this._onTouchStart |
| 225 | ); |
| 226 | this.listenerTarget.removeEventListener( |
| 227 | "touchmove", |
| 228 | this._onTouchMove |
| 229 | ); |
| 230 | this.listenerTarget.removeEventListener("touchend", this._onTouchEnd); |
| 231 | } |
| 232 | if (this.docTarget) { |
| 233 | this.docTarget.removeEventListener( |
| 234 | "mouseleave", |
| 235 | this._onDocumentLeave |
| 236 | ); |
| 237 | } |
| 238 | this.listenerTarget = null; |
| 239 | this.docTarget = null; |
| 240 | this.container = null; |
| 241 | } |
| 242 | private isPointInside(clientX: number, clientY: number) { |
| 243 | if (!this.container) return false; |
| 244 | const rect = this.container.getBoundingClientRect(); |
no outgoing calls
no test coverage detected