From 6977ea36a8f1ce930edef340b0b5d23a426ecfef 2012-09-04 07:41:39 From: Tero Ahola Date: 2012-09-04 07:41:39 Subject: [PATCH] Fixed scrolling left/right mixed up in QML ChartView --- diff --git a/plugins/declarative/declarativechart.cpp b/plugins/declarative/declarativechart.cpp index 218132a..7fe4b68 100644 --- a/plugins/declarative/declarativechart.cpp +++ b/plugins/declarative/declarativechart.cpp @@ -517,12 +517,12 @@ void DeclarativeChart::zoom(qreal factor) void DeclarativeChart::scrollLeft(qreal pixels) { - m_chart->scroll(pixels, 0); + m_chart->scroll(-pixels, 0); } void DeclarativeChart::scrollRight(qreal pixels) { - m_chart->scroll(-pixels, 0); + m_chart->scroll(pixels, 0); } void DeclarativeChart::scrollUp(qreal pixels)