Also revert touch-actions: none in standalone viewer

Breaks using touch to scroll the preferences screen for example
This commit is contained in:
Kovid Goyal 2020-02-22 11:04:12 +05:30
parent 42d5db549d
commit 9191034495
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -425,9 +425,7 @@ if window is window.top:
window.onerror = onerror window.onerror = onerror
create_modal_container() create_modal_container()
document.head.appendChild(E.style(get_widget_css())) document.head.appendChild(E.style(get_widget_css()))
# See https://github.com/kovidgoyal/calibre/pull/1101 set_css(document.body, background_color=get_color('window-background'), color=get_color('window-foreground'))
# 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')
setTimeout(def(): setTimeout(def():
window.onpopstate = on_pop_state window.onpopstate = on_pop_state
, 0) # We do this after event loop ticks over to avoid catching popstate events that some browsers send on page load , 0) # We do this after event loop ticks over to avoid catching popstate events that some browsers send on page load