Archived
1
0
This repository has been archived on 2024-09-09. You can view files and clone it, but cannot push or open issues or pull requests.
code-server/packages/vscode/src/fill/mouseEvent.ts
Asher e770920be0
Remove block padding (blank lines)
Also made a rule for it.
2019-02-05 18:09:04 -06:00

18 lines
508 B
TypeScript

import * as mouse from "vs/base/browser/mouseEvent";
/**
* Fix the wheel event for Firefox.
*/
class StandardWheelEvent extends mouse.StandardWheelEvent {
public constructor(event: mouse.IMouseWheelEvent | null) {
super(
event,
(-(event as any as MouseWheelEvent).deltaX || 0) / 3, // tslint:disable-line no-any
(-(event as any as MouseWheelEvent).deltaY || 0) / 3, // tslint:disable-line no-any
);
}
}
const target = mouse as typeof mouse;
target.StandardWheelEvent = StandardWheelEvent;