mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-06 10:02:43 +00:00
modify effect to enable Jump Editor button
This fixes the "jump editor to preview position" button.
This commit is contained in:
@@ -114,8 +114,8 @@ const BrewRenderer = (props)=>{
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
props.onPageChange(formatVisiblePages(state.visiblePages));
|
||||
}, [state.visiblePages]);
|
||||
props.onPageChange(state.centerPage);
|
||||
}, [state.centerPage]);
|
||||
|
||||
const handlePageVisibilityChange = useCallback((pageNum, isVisible) => {
|
||||
setState((prevState) => {
|
||||
|
||||
Reference in New Issue
Block a user