MCPcopy Create free account
hub / github.com/eva-engine/eva.js / onWheel

Method onWheel

packages/plugin-worker/lib/events/EventSystem.ts:451–457  ·  view source on GitHub ↗

* Passive handler for `wheel` events on EventSystem.domElement this.domElement. * @param nativeEvent - The native wheel event.

(nativeEvent: WheelEvent)

Source from the content-addressed store, hash-verified

449 * @param nativeEvent - The native wheel event.
450 */
451 protected onWheel(nativeEvent: WheelEvent): void {
452 if (!this.features.wheel) return;
453 const wheelEvent = this.normalizeWheelEvent(nativeEvent);
454
455 this.rootBoundary.rootTarget = this.renderer.lastObjectRendered;
456 this.rootBoundary.mapEvent(wheelEvent);
457 }
458
459 /**
460 * Sets the {@link EventSystem#domElement domElement} and binds event listeners.

Callers

nothing calls this directly

Calls 2

normalizeWheelEventMethod · 0.95
mapEventMethod · 0.80

Tested by

no test coverage detected