Skip to content

Commit

Permalink
Automatic merge branch 'current-stable' into 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
Auto CI committed Jan 14, 2025
2 parents b3bebc2 + 2b19e6b commit bc66f6b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion app/bibleview-js/src/components/BibleView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@
<div class="prev-page-button" @click.stop="scrollUpDown(true)" :style="{width: `${calculatedConfig.marginLeft}px`}"/>
<div class="next-page-button" @click.stop="scrollUpDown()" :style="{width: `${calculatedConfig.marginRight}px`}" />
</template>
<div class="pagenumber" :style="{bottom: `${appSettings.bottomOffset}px`}" v-if="config.showPageNumber">
<div class="pagenumber"
:style="{bottom: `${appSettings.bottomOffset}px`}"
v-if="config.showPageNumber"
@click="resetPageNumber()"
>
<div class="pagenumber-text">
{{ pageNumber }}
</div>
Expand Down Expand Up @@ -357,6 +361,10 @@ const pageNumber = computed(() => {
return num.toFixed(1);
});

function resetPageNumber() {
scrollYAtStart.value = scrollY.value
}

setupEventBusListener("scroll_down", () => scrollUpDown());
setupEventBusListener("scroll_up", () => scrollUpDown(true));

Expand Down

0 comments on commit bc66f6b

Please sign in to comment.