Skip to content

Commit 50df7a6

Browse files
committed
remove unused var
1 parent 26ecba8 commit 50df7a6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/common/services/CoreMouseService.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,7 @@ export class CoreMouseService extends Disposable implements ICoreMouseService {
251251
const targetWheelEventPixels = cellHeight / dpr;
252252
let amount = 1;
253253
if (ev.deltaMode === WheelEvent.DOM_DELTA_PIXEL) {
254-
const pixelAmount = ev.deltaY;
255-
amount = pixelAmount / (targetWheelEventPixels + 0.0); // Prevent integer division
254+
amount = ev.deltaY / (targetWheelEventPixels + 0.0); // Prevent integer division
256255
this._wheelPartialScroll += amount;
257256
amount = Math.floor(Math.abs(this._wheelPartialScroll)) * (this._wheelPartialScroll > 0 ? 1 : -1);
258257
this._wheelPartialScroll %= 1;

0 commit comments

Comments
 (0)