From 281592bdaa837761aba5eeb8468fc6eb27041cf6 Mon Sep 17 00:00:00 2001 From: "Michael Ziminsky (Z)" Date: Sun, 22 Dec 2019 22:26:07 -0700 Subject: [PATCH] Fix what I assume is a copy/paste oversight --- src/pyj/read_book/view.pyj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyj/read_book/view.pyj b/src/pyj/read_book/view.pyj index 2208ad31d5..82e291028f 100644 --- a/src/pyj/read_book/view.pyj +++ b/src/pyj/read_book/view.pyj @@ -133,7 +133,7 @@ def margin_elem(sd, which, id, onclick, oncontextmenu): if onclick: ans.addEventListener('click', onclick) if oncontextmenu: - ans.addEventListener('contextmenu', onclick) + ans.addEventListener('contextmenu', oncontextmenu) if is_ios and which is 'margin_bottom' and not window.navigator.standalone and not /CriOS\//.test(window.navigator.userAgent): # On iOS Safari 100vh includes the size of the navbar and there is no way to # go fullscreen, so to make the bottom bar visible we add a margin to