mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-02 19:22:47 +00:00
update page increment/decrement buttons
putting the `pageInput - 1` modifier in the `scrollToPage` method allows for more understandable button function ('back button' is `- 1` and 'forward button' is `+ 1`).
This commit is contained in:
@@ -82,6 +82,7 @@ const BrewRenderer = (props)=>{
|
||||
}, []);
|
||||
|
||||
const scrollToPage = (pageNumber) => {
|
||||
pageNumber = pageNumber - 1;
|
||||
const iframe = document.getElementById('BrewRenderer');
|
||||
if (iframe && iframe.contentWindow) {
|
||||
const brewRenderer =
|
||||
|
||||
Reference in New Issue
Block a user