Skip to content

Commit

Permalink
Use WheelEvent.deltaY instead of WheelEvent.wheelDeltaY for wheel event
Browse files Browse the repository at this point in the history
Fixes #1781
  • Loading branch information
astefanutti committed Nov 8, 2018
1 parent 160b4a7 commit 8acf137
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Terminal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,7 @@ export class Terminal extends EventEmitter implements ITerminal, IDisposable, II
: 65;
break;
case 'wheel':
button = (<WheelEvent>ev).wheelDeltaY > 0
button = (<WheelEvent>ev).deltaY < 0
? 64
: 65;
break;
Expand Down

0 comments on commit 8acf137

Please sign in to comment.