* Runner init called, view is available at this point. * @ignore
(options: EventSystemOptions)
| 258 | * @ignore |
| 259 | */ |
| 260 | public init(options: EventSystemOptions): void { |
| 261 | const { canvas, resolution } = this.renderer; |
| 262 | |
| 263 | this.setTargetElement(canvas as HTMLCanvasElement); |
| 264 | this.resolution = resolution; |
| 265 | EventSystem._defaultEventMode = options.eventMode ?? 'passive'; |
| 266 | Object.assign(this.features, options.eventFeatures ?? {}); |
| 267 | this.rootBoundary.enableGlobalMoveEvents = this.features.globalMove; |
| 268 | } |
| 269 | |
| 270 | /** |
| 271 | * Handle changing resolution. |
no test coverage detected