mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-27 01:29:58 +01:00
[apps/shared] In interactive curve view controller, reinit cursor
position after zooming in or out Change-Id: I4542e7cf25382fa2e4be3a92f3cbbf7e9c4fdcd4
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user