diff --git a/apps/statistics/histogram_controller.cpp b/apps/statistics/histogram_controller.cpp index 6caa81503..74f63d310 100644 --- a/apps/statistics/histogram_controller.cpp +++ b/apps/statistics/histogram_controller.cpp @@ -65,11 +65,10 @@ bool HistogramController::handleEvent(Ion::Events::Event event) { return true; } if (m_view.isMainViewSelected() && (event == Ion::Events::Left || event == Ion::Events::Right)) { - reloadBannerView(); int direction = event == Ion::Events::Left ? -1 : 1; - if (moveSelection(direction)) { - m_view.reload(); - } + moveSelection(direction); + reloadBannerView(); + m_view.reload(); return true; } return false; diff --git a/apps/statistics/histogram_controller.h b/apps/statistics/histogram_controller.h index f6c7f2447..e22b972cc 100644 --- a/apps/statistics/histogram_controller.h +++ b/apps/statistics/histogram_controller.h @@ -29,7 +29,7 @@ public: Responder * defaultController() override; void viewWillAppear() override; private: - constexpr static int k_maxNumberOfBarsPerWindow = 280; + constexpr static int k_maxNumberOfBarsPerWindow = 100; constexpr static int k_maxNumberOfCharacters = 12; Responder * tabController() const; void reloadBannerView(); diff --git a/apps/statistics/store.cpp b/apps/statistics/store.cpp index 092e03711..314e8f41f 100644 --- a/apps/statistics/store.cpp +++ b/apps/statistics/store.cpp @@ -34,7 +34,7 @@ void Store::setBarWidth(float barWidth) { if (barWidth <= 0.0f) { return; } - m_barWidth = barWidth; + m_barWidth = barWidth; } float Store::firstDrawnBarAbscissa() {