mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-28 01:59:59 +01:00
[apps/sequence][apps/regression][apps/graph] Move ranges and cursor in
snapshot Change-Id: I3e5a163ae4b3a6860969ef12d939513cffed7710
This commit is contained in:
@@ -7,10 +7,10 @@ using namespace Poincare;
|
||||
|
||||
namespace Shared {
|
||||
|
||||
InteractiveCurveViewController::InteractiveCurveViewController(Responder * parentResponder, ButtonRowController * header, InteractiveCurveViewRange * interactiveRange, CurveView * curveView) :
|
||||
InteractiveCurveViewController::InteractiveCurveViewController(Responder * parentResponder, ButtonRowController * header, InteractiveCurveViewRange * interactiveRange, CurveView * curveView, CurveViewCursor * cursor) :
|
||||
ViewController(parentResponder),
|
||||
ButtonRowDelegate(header, nullptr),
|
||||
m_cursor(),
|
||||
m_cursor(cursor),
|
||||
m_cursorView(CursorView()),
|
||||
m_modelVersion(0),
|
||||
m_rangeVersion(0),
|
||||
@@ -181,7 +181,7 @@ StackViewController * InteractiveCurveViewController::stackController() const{
|
||||
|
||||
void InteractiveCurveViewController::centerCursorVertically() {
|
||||
if (!interactiveCurveViewRange()->yAuto()) {
|
||||
interactiveCurveViewRange()->centerAxisAround(CurveViewRange::Axis::Y, m_cursor.y());
|
||||
interactiveCurveViewRange()->centerAxisAround(CurveViewRange::Axis::Y, m_cursor->y());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user