mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04: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
@ -425,9 +425,7 @@ if window is window.top:
|
||||
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…
x
Reference in New Issue
Block a user