diff --git a/resources/rapydscript/compiler.js.xz b/resources/rapydscript/compiler.js.xz index 5024f6f3ea..0b24e45b84 100644 Binary files a/resources/rapydscript/compiler.js.xz and b/resources/rapydscript/compiler.js.xz differ diff --git a/src/pyj/read_book/touch.pyj b/src/pyj/read_book/touch.pyj index 8ba54ed32c..5a29f3cc9b 100644 --- a/src/pyj/read_book/touch.pyj +++ b/src/pyj/read_book/touch.pyj @@ -274,7 +274,9 @@ def install_handlers(elem, handler): elem.addEventListener('touchcancel', handler.handle_touchcancel, options) def create_handlers(): - install_handlers(window, main_touch_handler) + # Safari does not work if we register the handler + # on window instead of document + install_handlers(document, main_touch_handler) def set_left_margin_handler(elem): install_handlers(elem, left_margin_handler)