0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-31 00:03:21 +00:00

Bodge Render side mirroring back into place.

This commit is contained in:
David Bolack
2024-09-07 21:33:51 -05:00
parent b124e55b3d
commit 7a37bf47c5
2 changed files with 6 additions and 3 deletions

View File

@@ -108,6 +108,8 @@ const BrewRenderer = (props)=>{
const totalScrollableHeight = scrollHeight - clientHeight;
const currentPageNumber = Math.ceil((scrollTop / totalScrollableHeight) * rawPages.length);
handleScroll(e);
setState((prevState)=>({
...prevState,
currentPageNumber : currentPageNumber || 1