Skip to content

Commit

Permalink
Merge pull request #1782 from astefanutti/pr-wheel
Browse files Browse the repository at this point in the history
Use WheelEvent.deltaY instead of WheelEvent.wheelDeltaY for wheel event
  • Loading branch information
jerch committed Nov 8, 2018
2 parents 160b4a7 + 8acf137 commit 70981c7
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 70981c7

Please sign in to comment.