mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 02:53:38 +02:00
Also revert touch-actions: none in standalone viewer
Breaks using touch to scroll the preferences screen for example
This commit is contained in:
parent
42d5db549d
commit
9191034495
1 changed files with 1 additions and 3 deletions
|
|
@ -425,9 +425,7 @@ def onerror(msg, script_url, line_number, column_number, error_object):
|
|||
window.onerror = onerror
|
||||
create_modal_container()
|
||||
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'))
|
||||
setTimeout(def():
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue