* Dispatch with continuous priority. * For high-frequency events: resize, scroll, mouse move.
(target: EventTarget, event: TerminalEvent)
| 222 | * For high-frequency events: resize, scroll, mouse move. |
| 223 | */ |
| 224 | dispatchContinuous(target: EventTarget, event: TerminalEvent): boolean { |
| 225 | const previousPriority = this.currentUpdatePriority |
| 226 | try { |
| 227 | this.currentUpdatePriority = ContinuousEventPriority as number |
| 228 | return this.dispatch(target, event) |
| 229 | } finally { |
| 230 | this.currentUpdatePriority = previousPriority |
| 231 | } |
| 232 | } |
| 233 | } |
| 234 |