summaryrefslogtreecommitdiffstats
path: root/zalmy.ts
diff options
context:
space:
mode:
Diffstat (limited to 'zalmy.ts')
-rw-r--r--zalmy.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/zalmy.ts b/zalmy.ts
index ba01366..3bfc5f6 100644
--- a/zalmy.ts
+++ b/zalmy.ts
@@ -60,9 +60,10 @@ export class Psalm extends ap.ActivePage {
*/
display(disp_no: number = this.cur_psalm) {
console.log("cur_psalm = " + disp_no);
+ // first scroll then switch to avoid blinking of the page
+ window.scroll(0, 0);
document.getElementById("Ps." + disp_no).parentElement.
classList.add('visible');
- window.scroll(0, 0);
}
/**