UNPKG

@babylonjs/core

Version:

Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.

21 lines 820 B
import { CameraInputTypes } from "../../Cameras/cameraInputsManager.js"; import { BaseCameraMouseWheelInput } from "./BaseCameraMouseWheelInput.js"; /** * @experimental * Manage the mouse wheel inputs to control a geospatial camera. As this feature is experimental the API will evolve */ export class GeospatialCameraMouseWheelInput extends BaseCameraMouseWheelInput { /** * Gets the class name of the current input. * @returns the class name */ getClassName() { return "GeospatialCameraMouseWheelInput"; } checkInputs() { this.camera.movement.zoomAccumulatedPixels = this._wheelDeltaY; super.checkInputs(); } } CameraInputTypes["GeospatialCameraMouseWheelInput"] = GeospatialCameraMouseWheelInput; //# sourceMappingURL=geospatialCameraMouseWheelInput.js.map