Skip to content

Commit

Permalink
add metaKey on wheel macOS (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
temaivanoff authored Aug 23, 2022
1 parent 4ae6464 commit 85d0da0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chartZoom/wheel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class ChartZoomWheel {
zoom: 0,
}
};
if (event.ctrlKey) { // zoom
if (event.ctrlKey || event.metaKey) { // zoom
if (event.altKey) {
transform[DIRECTION.X].zoom = deltaX;
transform[DIRECTION.Y].zoom = deltaY;
Expand Down

0 comments on commit 85d0da0

Please sign in to comment.