From f449de645b33a28daeaaddcc613c30b4eb159f4c Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Thu, 24 Sep 2015 15:01:03 -0300 Subject: Fixed interaction issues (inverted y coordinate). --- scatterplot.cpp | 4 ++-- 1 file 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; -- cgit v1.2.3