()
| 177 | } |
| 178 | |
| 179 | bindEvents() { |
| 180 | const c = this.container; |
| 181 | c.addEventListener("touchstart", this.handleTouchStart.bind(this), { |
| 182 | passive: false, |
| 183 | }); |
| 184 | c.addEventListener("touchmove", this.handleTouchMove.bind(this), { |
| 185 | passive: false, |
| 186 | }); |
| 187 | c.addEventListener("touchend", this.handleTouchEnd.bind(this)); |
| 188 | c.addEventListener("contextmenu", (e) => e.preventDefault()); |
| 189 | |
| 190 | c.addEventListener("mousedown", this.handleMouseDown.bind(this)); |
| 191 | } |
| 192 | |
| 193 | // --- Touch Handlers --- |
| 194 |
no test coverage detected