Skip to content

Commit

Permalink
Fix verse-notifier (when reading direction is changed)
Browse files Browse the repository at this point in the history
  • Loading branch information
tuomas2 committed Jan 1, 2025
1 parent 0cb27d0 commit f6c573e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/bibleview-js/src/composables/verse-notifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ export function useVerseNotifier(

// Find element, starting from right
let element: Nullable<HTMLElement>;
let directionChanged = true;
while (directionChanged) {
directionChanged = false;
while (y < window.innerHeight) {
while (y < window.innerHeight) {
let directionChanged = true;
while (directionChanged) {
directionChanged = false;
for (const x of iterate(lastDirection)) {
element = document.elementFromPoint(x, y) as Nullable<HTMLElement>
if (element) {
Expand Down

0 comments on commit f6c573e

Please sign in to comment.