Skip to content

Commit

Permalink
Added x position offset to mouse wheel action.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbicker committed Nov 13, 2018
1 parent b0b8caf commit b175628
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/time-axis-scale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class TimeAxisScale extends TimeGraphComponent {
this.mouseStartX = ev.x;
this.graphWidthStart = this.controller.graphWidth;
this.zoom((ev.deltaY / 100) * (-1));
this.setXOffset();
this.setXOffset(ev.deltaX * (-1));
this.setZoomAndPosition();
return false;
});
Expand Down

0 comments on commit b175628

Please sign in to comment.