gl2d
Version:
2D graphics package for WebGL
15 lines (14 loc) • 548 B
TypeScript
import { _Surface } from '../rendering/surface';
import { Point } from '../struct/point';
import { SurfaceEvent } from './surface';
export interface SurfaceWheelEvent<S extends _Surface> extends SurfaceEvent<S, WheelEvent | MouseWheelEvent> {
/**
* True if the wheel is being scrolled upwards; false if the wheel is scrolling downwards.
*/
isUpward: boolean;
/**
* The position of the cursor in world space.
*/
cursor: Point;
}
export declare type _SurfaceWheelEvent = SurfaceWheelEvent<_Surface>;