[apps/shared] In interactive curve view controller, reinit cursor

position after zooming in or out

Change-Id: I4542e7cf25382fa2e4be3a92f3cbbf7e9c4fdcd4
This commit is contained in:
Émilie Feral
2017-06-01 14:27:00 +02:00
parent 9604f2bfcb
commit 9a48b1cce3

View File

@@ -61,12 +61,14 @@ bool InteractiveCurveViewController::handleEvent(Ion::Events::Event event) {
}
if (event == Ion::Events::Plus) {
interactiveCurveViewRange()->zoom(1.0f/3.0f);
initCursorParameters();
reloadBannerView();
curveView()->reload();
return true;
}
if (event == Ion::Events::Minus) {
interactiveCurveViewRange()->zoom(3.0f/4.0f);
initCursorParameters();
reloadBannerView();
curveView()->reload();
return true;