Content server: Fix a regression that broke scrolling in the server in 4.11. Fixes #1864263 [Content server new scrolling issues with 4.11.1](https://bugs.launchpad.net/calibre/+bug/1864263)

This commit is contained in:
Kovid Goyal 2020-02-22 08:39:13 +05:30
parent c7b8bd30e8
commit 07201fc280
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -67,9 +67,7 @@ def init_ui():
install(translations)
remove_initial_progress_bar()
document.head.appendChild(E.style(get_widget_css()))
# See https://github.com/kovidgoyal/calibre/pull/1101
# for why we need touch-action: none
set_css(document.body, background_color=get_color('window-background'), color=get_color('window-foreground'), touch_action='none')
set_css(document.body, background_color=get_color('window-background'), color=get_color('window-foreground'))
document.body.appendChild(E.div())
document.body.lastChild.appendChild(E.div(id=book_list_container_id, style='display: none'))
document.body.lastChild.appendChild(E.div(id=read_book_container_id, style='display: none'))