import { SyntheticWheelEvent } from '../../SyntheticWheelEvent'; import { NativeMouseEvent } from './NativeMouseEvent'; // @ts-ignore: https://github.com/Microsoft/TypeScript/issues/4628 export class NativeWheelEvent extends NativeMouseEvent { static map(e: any) { return new SyntheticWheelEvent(-e.angleDelta.x, -e.angleDelta.y, e.x, e.y, 1, e.buttons, NativeMouseEvent.convertModifiers(e.modifiers)); } static readonly syntheticEvent = SyntheticWheelEvent; }