GRizzi91 / bouquet

PDF reader Android library based on Jetpack Compose
Apache License 2.0
152 stars 32 forks source link

Expose canScroll states in PDFReaderState #49

Open JBayangosB opened 1 year ago

JBayangosB commented 1 year ago

Small change to PDFReaderState that exposes the canScrollForward and canScrollBackyard properties from pagerState for HorizontalPDFReaderState and lazyListState for VerticalPDFReaderState.

This is particular useful for supporting this issue: https://github.com/GRizzi91/bouquet/issues/45 as the currentPage property would lead to strange scenarios depending on device size, when used to decide if the PDF reader was scrolled to the bottom or top.

https://github.com/GRizzi91/bouquet/assets/16602828/9882124d-96f5-446e-9259-9f1920e456e4

JBayangosB commented 1 year ago

Changed branch to merge into master as it appeared develop was out of date. Feel free to adjust if needed!