mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
E-book viewer: Hide the controls when clicking the back or forward buttons
This commit is contained in:
parent
765f66d856
commit
0139ed13fe
@ -653,7 +653,6 @@ class IframeBoss:
|
|||||||
def send_message(self, action, **data):
|
def send_message(self, action, **data):
|
||||||
self.comm.send_message(action, data)
|
self.comm.send_message(action, data)
|
||||||
|
|
||||||
|
|
||||||
def connect_links(self):
|
def connect_links(self):
|
||||||
for a in document.body.querySelectorAll(f'a[{self.link_attr}]'):
|
for a in document.body.querySelectorAll(f'a[{self.link_attr}]'):
|
||||||
a.addEventListener('click', self.link_activated)
|
a.addEventListener('click', self.link_activated)
|
||||||
|
@ -428,9 +428,11 @@ class MainOverlay: # {{{
|
|||||||
|
|
||||||
def back(self):
|
def back(self):
|
||||||
window.history.back()
|
window.history.back()
|
||||||
|
self.overlay.hide()
|
||||||
|
|
||||||
def forward(self):
|
def forward(self):
|
||||||
window.history.forward()
|
window.history.forward()
|
||||||
|
self.overlay.hide()
|
||||||
|
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user