mirror of
https://github.com/coder/code-server.git
synced 2024-12-27 03:34:06 +03:00
parent
0ff8a11c7f
commit
48a97abe1d
@ -57,27 +57,27 @@ index 6bb695db68..ecbabe5dc8 100644
|
|||||||
}
|
}
|
||||||
-
|
-
|
||||||
diff --git a/src/vs/base/browser/mouseEvent.ts b/src/vs/base/browser/mouseEvent.ts
|
diff --git a/src/vs/base/browser/mouseEvent.ts b/src/vs/base/browser/mouseEvent.ts
|
||||||
index 4c7295e3b9..fc9694a18b 100644
|
index 4c7295e3b9..b0af2cdd62 100644
|
||||||
--- a/src/vs/base/browser/mouseEvent.ts
|
--- a/src/vs/base/browser/mouseEvent.ts
|
||||||
+++ b/src/vs/base/browser/mouseEvent.ts
|
+++ b/src/vs/base/browser/mouseEvent.ts
|
||||||
@@ -158,7 +158,7 @@ export class StandardWheelEvent {
|
@@ -160,6 +160,8 @@ export class StandardWheelEvent {
|
||||||
// vertical delta scroll
|
|
||||||
if (typeof e1.wheelDeltaY !== 'undefined') {
|
|
||||||
this.deltaY = e1.wheelDeltaY / 120;
|
this.deltaY = e1.wheelDeltaY / 120;
|
||||||
- } else if (typeof e2.VERTICAL_AXIS !== 'undefined' && e2.axis === e2.VERTICAL_AXIS) {
|
} else if (typeof e2.VERTICAL_AXIS !== 'undefined' && e2.axis === e2.VERTICAL_AXIS) {
|
||||||
+ } else if (browser.isFirefox || (typeof e2.VERTICAL_AXIS !== 'undefined' && e2.axis === e2.VERTICAL_AXIS)) {
|
|
||||||
this.deltaY = -e2.detail / 3;
|
this.deltaY = -e2.detail / 3;
|
||||||
|
+ } else if (browser.isFirefox) {
|
||||||
|
+ this.deltaY = -e.deltaY / 3;
|
||||||
} else {
|
} else {
|
||||||
this.deltaY = -e.deltaY / 40;
|
this.deltaY = -e.deltaY / 40;
|
||||||
@@ -171,7 +171,7 @@ export class StandardWheelEvent {
|
}
|
||||||
} else {
|
@@ -173,6 +175,8 @@ export class StandardWheelEvent {
|
||||||
this.deltaX = e1.wheelDeltaX / 120;
|
|
||||||
}
|
}
|
||||||
- } else if (typeof e2.HORIZONTAL_AXIS !== 'undefined' && e2.axis === e2.HORIZONTAL_AXIS) {
|
} else if (typeof e2.HORIZONTAL_AXIS !== 'undefined' && e2.axis === e2.HORIZONTAL_AXIS) {
|
||||||
+ } else if (browser.isFirefox || (typeof e2.HORIZONTAL_AXIS !== 'undefined' && e2.axis === e2.HORIZONTAL_AXIS)) {
|
|
||||||
this.deltaX = -e.detail / 3;
|
this.deltaX = -e.detail / 3;
|
||||||
|
+ } else if (browser.isFirefox) {
|
||||||
|
+ this.deltaX = -e.deltaX / 3;
|
||||||
} else {
|
} else {
|
||||||
this.deltaX = -e.deltaX / 40;
|
this.deltaX = -e.deltaX / 40;
|
||||||
|
}
|
||||||
diff --git a/src/vs/base/common/network.ts b/src/vs/base/common/network.ts
|
diff --git a/src/vs/base/common/network.ts b/src/vs/base/common/network.ts
|
||||||
index 4f93e06df0..ae63e64a7f 100644
|
index 4f93e06df0..ae63e64a7f 100644
|
||||||
--- a/src/vs/base/common/network.ts
|
--- a/src/vs/base/common/network.ts
|
||||||
|
Loading…
Reference in New Issue
Block a user