We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26ecba8 commit 50df7a6Copy full SHA for 50df7a6
src/common/services/CoreMouseService.ts
@@ -251,8 +251,7 @@ export class CoreMouseService extends Disposable implements ICoreMouseService {
251
const targetWheelEventPixels = cellHeight / dpr;
252
let amount = 1;
253
if (ev.deltaMode === WheelEvent.DOM_DELTA_PIXEL) {
254
- const pixelAmount = ev.deltaY;
255
- amount = pixelAmount / (targetWheelEventPixels + 0.0); // Prevent integer division
+ amount = ev.deltaY / (targetWheelEventPixels + 0.0); // Prevent integer division
256
this._wheelPartialScroll += amount;
257
amount = Math.floor(Math.abs(this._wheelPartialScroll)) * (this._wheelPartialScroll > 0 ? 1 : -1);
258
this._wheelPartialScroll %= 1;
0 commit comments