(instance: Instance, button: MouseButton = 0)
| 89 | } |
| 90 | |
| 91 | down(instance: Instance, button: MouseButton = 0) { |
| 92 | if (this.isDown) { |
| 93 | return |
| 94 | } |
| 95 | const target = this.getTarget(instance) |
| 96 | |
| 97 | assertPointerEvents(instance, target) |
| 98 | |
| 99 | this.isDown = true |
| 100 | this.isPrevented = !instance.dispatchUIEvent( |
| 101 | target, |
| 102 | 'pointerdown', |
| 103 | this.getEventInit(button), |
| 104 | ) |
| 105 | } |
| 106 | |
| 107 | up(instance: Instance, button: MouseButton = 0) { |
| 108 | if (!this.isDown) { |
nothing calls this directly
no test coverage detected