E-book viewer: Hide the controls when clicking the back or forward buttons

This commit is contained in:
Kovid Goyal 2021-02-08 15:11:35 +05:30
parent 765f66d856
commit 0139ed13fe
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 2 additions and 1 deletions

View File

@ -653,7 +653,6 @@ class IframeBoss:
def send_message(self, action, **data):
self.comm.send_message(action, data)
def connect_links(self):
for a in document.body.querySelectorAll(f'a[{self.link_attr}]'):
a.addEventListener('click', self.link_activated)

View File

@ -428,9 +428,11 @@ class MainOverlay: # {{{
def back(self):
window.history.back()
self.overlay.hide()
def forward(self):
window.history.forward()
self.overlay.hide()
# }}}