marwan / quranwbw-v4

QuranWBW.com Version 4.
https://v4.quranwbw.com
9 stars 3 forks source link

Load Mushaf pages in unlimited scrolling style. #88

Open Ayman24x7 opened 1 month ago

Ayman24x7 commented 1 month ago

Add an option to make Mushaf pages load in scrolling style. From page 1 to 604.

Whenever user visits a page, load two pages together, then load next page in background when 1st page is half scrolled.

This makes seamless loading without burdening the browser.

Also once user goes down 2 pages, then remove previous pages (above past 2)

Like this at a time, user will have 5 pages loaded.

2(previous) 1 current 2(next)

..

Just keep page number under each page and remove next and previous page buttons.

..

When user jumps to a page from page 2 and later, show the navigated page first, and then load one previous and one next page in background, and make previous page available on demand with a load previous page button or just a top arrow. (the succeeding pages should always be visible without pressing load next page).

..

When used reaches page 602. Load pages till 604 and stop auto loading. Because page 604 will be loaded in advance.

This combined with auto scrolling feature will make Quran reading experience without user touching the screen.

Example use case : If a hafiz is practicing multiple pages by looking at Mushaf layout. Standing far from the screen. Then he can have hands free experience.