Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@
* (C) Copyright 2014-2021, by Object Refinery Limited and Contributors.
*
* Original Author: David Gilbert (for Object Refinery Limited);
* Contributor(s): -;
* Contributor(s): Matthias Noebl (for Cropster GmbH);
*
* Changes
* -------
* 03-Aug-2018 : Correct zoom direction to be analogous to Swing (MN);
*
*/

Expand Down Expand Up @@ -124,7 +128,7 @@ private void handleZoomable(ChartCanvas canvas, Zoomable zoomable,
plot.setNotify(false);
int clicks = (int) e.getDeltaY();
double zf = 1.0 + this.zoomFactor;
if (clicks < 0) {
if (clicks > 0) {
zf = 1.0 / zf;
}
if (canvas.isDomainZoomable()) {
Expand Down