aboutsummaryrefslogtreecommitdiff
path: root/scatterplot.cpp
diff options
context:
space:
mode:
authorSamuel Fadel <samuelfadel@gmail.com>2015-09-24 15:01:03 -0300
committerSamuel Fadel <samuelfadel@gmail.com>2015-09-24 15:01:03 -0300
commitf449de645b33a28daeaaddcc613c30b4eb159f4c (patch)
tree37f56d648bebf41cce21600371aef5e2ce927537 /scatterplot.cpp
parent0ff5553653bbfd0e773970b78bee356543c2bf74 (diff)
Fixed interaction issues (inverted y coordinate).
Diffstat (limited to 'scatterplot.cpp')
-rw-r--r--scatterplot.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scatterplot.cpp b/scatterplot.cpp
index a546980..c5348f2 100644
--- a/scatterplot.cpp
+++ b/scatterplot.cpp
@@ -361,8 +361,8 @@ void Scatterplot::applyManipulation()
float tx = m_dragCurrentPos.x() - m_dragOriginPos.x();
float ty = m_dragCurrentPos.y() - m_dragOriginPos.y();
- tx /= (width() - PADDING);
- ty /= (height() - PADDING);
+ tx /= (width() - PADDING);
+ ty /= -(height() - PADDING);
float x_extent = m_xmax - m_xmin;
float y_extent = m_ymax - m_ymin;