Skip to content

Commit

Permalink
fix: mouseEvent.which deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Dec 29, 2020
1 parent 31ca2e4 commit de81494
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/minimap-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -1291,8 +1291,8 @@ function extractMouseEventData (mouseEvent) {
return {
x: mouseEvent.pageX,
y: mouseEvent.pageY,
isLeftMouse: mouseEvent.which === 1,
isMiddleMouse: mouseEvent.which === 2
isLeftMouse: mouseEvent.button === 0,
isMiddleMouse: mouseEvent.button === 1
}
}

Expand Down

0 comments on commit de81494

Please sign in to comment.