Skip to content

Commit

Permalink
Get verse container height and set as tapScrollDist
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanroj23 committed Jan 16, 2025
1 parent 1301779 commit 2dc4e94
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions topics/topics.js
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,9 @@ function addDivForTopic(topic){


function afterLoadingVerses(){
// This is because of a weird bug with ios not properly honoring scroll-snap-type
tapScrollDist = document.getElementsByClassName("scrollable-verse")[0].getBoundingClientRect().height

const params = new URLSearchParams(window.location.search);
globalLastRead = getLocalStorageDict('lastReadVerse');
if (params.has('last_read')){
Expand Down

0 comments on commit 2dc4e94

Please sign in to comment.