mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Restore position after resize
This commit is contained in:
parent
f2776745cd
commit
52b3964ce6
@ -206,6 +206,10 @@ class IframeBoss:
|
||||
def onresize(self):
|
||||
if current_layout_mode() is not 'flow':
|
||||
self.do_layout()
|
||||
if self.last_cfi:
|
||||
cfi = self.last_cfi[len('epubcfi(/'):-1].partition('/')[2]
|
||||
if cfi:
|
||||
paged_jump_to_cfi('/' + cfi)
|
||||
self.update_cfi()
|
||||
|
||||
def onwheel(self, evt):
|
||||
|
Loading…
x
Reference in New Issue
Block a user