@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.
20 lines • 745 B
JavaScript
import { CameraInputTypes } from "../../Cameras/cameraInputsManager.js";
import { BaseCameraMouseWheelInput } from "./BaseCameraMouseWheelInput.js";
/**
* Manage the mouse wheel inputs to control a geospatial camera.
*/
export class GeospatialCameraMouseWheelInput extends BaseCameraMouseWheelInput {
/**
* Gets the class name of the current input.
* @returns the class name
*/
getClassName() {
return "GeospatialCameraMouseWheelInput";
}
checkInputs() {
this.camera.movement.handleZoom(this._wheelDeltaY, true);
super.checkInputs();
}
}
CameraInputTypes["GeospatialCameraMouseWheelInput"] = GeospatialCameraMouseWheelInput;
//# sourceMappingURL=geospatialCameraMouseWheelInput.js.map