Do all scroll watching on the main window

This moves all scrolling from child divs to the main window. This
improves our keyboard handling, as focus will be given to the
body element, not the child div when navigating by keyboard
commands, so arrow keys and space bar will work after navigating
to the reader with the keyboard commands.
This commit is contained in:
Jackson Harper
2022-06-17 15:59:41 -07:00
parent 65b8893fc0
commit eb8cb3854c
11 changed files with 47 additions and 122 deletions

View File

@ -36,7 +36,6 @@ const App = () => {
<ArticleContainer
article={window.omnivoreArticle}
labels={window.omnivoreArticle.labels}
scrollElementRef={React.createRef()}
isAppleAppEmbed={true}
highlightBarDisabled={true}
highlightsBaseURL="https://example.com"