mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-30 04:00:02 +02:00
[apps] Tweaked panning for better cache alignement
Method InteractiveCurveViewRange::panToMakePointVisible now moves the range of a whole number of pixels when panning horizontally. This allows the cache of cartesian functions not to be invalidated. Change-Id: Idb9904fef134dd13458e1f2287b0fe5145e8aec7
This commit is contained in:
committed by
Émilie Feral
parent
5bc19af196
commit
4007f4d452
@@ -262,7 +262,7 @@ void GraphController::initCursorParameters() {
|
||||
double y = m_store->meanOfColumn(*m_selectedSeriesIndex, 1);
|
||||
m_cursor->moveTo(x, x, y);
|
||||
if (m_store->yAuto()) {
|
||||
m_store->panToMakePointVisible(x, y, cursorTopMarginRatio(), k_cursorRightMarginRatio, cursorBottomMarginRatio(), k_cursorLeftMarginRatio);
|
||||
m_store->panToMakePointVisible(x, y, cursorTopMarginRatio(), k_cursorRightMarginRatio, cursorBottomMarginRatio(), k_cursorLeftMarginRatio, curveView()->pixelWidth());
|
||||
}
|
||||
*m_selectedDotIndex = m_store->numberOfPairsOfSeries(*m_selectedSeriesIndex);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user