Remove currentBrewRendererPageNum from brewRenderer

This commit is contained in:
Trevor Buckner
2026-09-23 19:07:46 +00:00
parent 75ad31f1c8
commit a26831e111
5 changed files with 1 additions and 6 deletions
@@ -96,7 +96,6 @@ const BrewRenderer = (props)=>{
lang : '',
errors : [],
currentEditorCursorPageNum : 1,
currentBrewRendererPageNum : 1,
themeBundle : {},
onPageChange : ()=>{},
...props
@@ -154,7 +153,7 @@ const BrewRenderer = (props)=>{
if(index == props.currentEditorCursorPageNum - 1) //Already rendered before this step
return false;
if(Math.abs(index - props.currentBrewRendererPageNum - 1) <= 3)
if(Math.abs(index - centerPage - 1) <= 3)
return true;
return false;