From 5d1411a13d91801e904ad24558f89a1cd217fce2 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 27 May 2017 20:18:43 +0530 Subject: [PATCH] Also scroll window to zero on content load --- src/pyj/read_book/view.pyj | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pyj/read_book/view.pyj b/src/pyj/read_book/view.pyj index 71be972c2f..d5b5d92686 100644 --- a/src/pyj/read_book/view.pyj +++ b/src/pyj/read_book/view.pyj @@ -489,6 +489,7 @@ class View: self.hide_loading() frac = data.progress_frac or 0 self.update_read_percent(frac) + window.scrollTo(0, 0) # ensure window is at 0 on mobile where the navbar causes issues def update_font_size(self): self.send_message('change_font_size', base_font_size=get_session_data().get('base_font_size'))