From b67ce99a0e3988f717d5b866b819d831594597d9 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sat, 3 Dec 2022 14:19:22 +0100 Subject: [PATCH] Added navigation sound support to GridComponent. --- es-core/src/components/primary/GridComponent.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/es-core/src/components/primary/GridComponent.h b/es-core/src/components/primary/GridComponent.h index c7bb3cec7..70b738e8a 100644 --- a/es-core/src/components/primary/GridComponent.h +++ b/es-core/src/components/primary/GridComponent.h @@ -72,6 +72,11 @@ public: unsigned int properties) override; private: + void onScroll() override + { + if (!NavigationSounds::getInstance().isPlayingThemeNavigationSound(SCROLLSOUND)) + NavigationSounds::getInstance().playThemeNavigationSound(SCROLLSOUND); + } void onCursorChanged(const CursorState& state) override; bool isScrolling() const override { return List::isScrolling(); } void stopScrolling() override { List::stopScrolling(); }