From 2d13070cfbf8dc2c2e4f8c247d1d67ff5eac4d2e Mon Sep 17 00:00:00 2001 From: Quentin Gliosca Date: Tue, 5 Nov 2024 13:53:18 +0100 Subject: [PATCH] Fix value of navigator.overscroll.value.scroll in fxl mode --- .../org/readium/r2/navigator/epub/EpubNavigatorViewModel.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/readium/navigator/src/main/java/org/readium/r2/navigator/epub/EpubNavigatorViewModel.kt b/readium/navigator/src/main/java/org/readium/r2/navigator/epub/EpubNavigatorViewModel.kt index ee9f1b90e4..f071233add 100644 --- a/readium/navigator/src/main/java/org/readium/r2/navigator/epub/EpubNavigatorViewModel.kt +++ b/readium/navigator/src/main/java/org/readium/r2/navigator/epub/EpubNavigatorViewModel.kt @@ -90,7 +90,11 @@ internal class EpubNavigatorViewModel( .mapStateIn(viewModelScope) { settings -> SimpleOverflow( readingProgression = settings.readingProgression, - scroll = settings.scroll, + scroll = if (layout == EpubLayout.REFLOWABLE) { + settings.scroll + } else { + false + }, axis = if (settings.scroll && !settings.verticalText) { Axis.VERTICAL } else {