0
0
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:
Gazook89
2024-08-19 22:43:41 -05:00
parent 176977dd2a
commit 720e43e9d9
2 changed files with 7 additions and 12 deletions

View File

@@ -82,6 +82,7 @@ const BrewRenderer = (props)=>{
}, []);
const scrollToPage = (pageNumber) => {
pageNumber = pageNumber - 1;
const iframe = document.getElementById('BrewRenderer');
if (iframe && iframe.contentWindow) {
const brewRenderer =