mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Also scroll window to zero on content load
This commit is contained in:
parent
099d083b25
commit
5d1411a13d
@ -489,6 +489,7 @@ class View:
|
|||||||
self.hide_loading()
|
self.hide_loading()
|
||||||
frac = data.progress_frac or 0
|
frac = data.progress_frac or 0
|
||||||
self.update_read_percent(frac)
|
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):
|
def update_font_size(self):
|
||||||
self.send_message('change_font_size', base_font_size=get_session_data().get('base_font_size'))
|
self.send_message('change_font_size', base_font_size=get_session_data().get('base_font_size'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user