From 3e2d12a2245b2650982940b6183bdaeb85ece027 Mon Sep 17 00:00:00 2001 From: Asher Date: Thu, 22 Aug 2019 11:33:58 -0500 Subject: [PATCH] Fix scrolling on Firefox --- scripts/vscode.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/scripts/vscode.patch b/scripts/vscode.patch index abc5d65d..80cb6bf0 100644 --- a/scripts/vscode.patch +++ b/scripts/vscode.patch @@ -80,6 +80,28 @@ index fa12f62900..509e76ecb7 100644 } return uri; } +diff --git a/src/vs/base/browser/mouseEvent.ts b/src/vs/base/browser/mouseEvent.ts +index 4c7295e3b9..b0af2cdd62 100644 +--- a/src/vs/base/browser/mouseEvent.ts ++++ b/src/vs/base/browser/mouseEvent.ts +@@ -160,6 +160,8 @@ export class StandardWheelEvent { + this.deltaY = e1.wheelDeltaY / 120; + } else if (typeof e2.VERTICAL_AXIS !== 'undefined' && e2.axis === e2.VERTICAL_AXIS) { + this.deltaY = -e2.detail / 3; ++ } else if (browser.isFirefox) { ++ this.deltaY = -e.deltaY / 3; + } else { + this.deltaY = -e.deltaY / 40; + } +@@ -173,6 +175,8 @@ export class StandardWheelEvent { + } + } else if (typeof e2.HORIZONTAL_AXIS !== 'undefined' && e2.axis === e2.HORIZONTAL_AXIS) { + this.deltaX = -e.detail / 3; ++ } else if (browser.isFirefox) { ++ this.deltaX = -e.deltaX / 3; + } else { + this.deltaX = -e.deltaX / 40; + } diff --git a/src/vs/base/browser/ui/menu/menu.ts b/src/vs/base/browser/ui/menu/menu.ts index c2b60a5dc9..3f40fa0bdf 100644 --- a/src/vs/base/browser/ui/menu/menu.ts