daybrush / infinite-viewer

Infinite Viewer is Document Viewer Component with infinite scrolling.
https://daybrush.com/infinite-viewer/
MIT License
296 stars 33 forks source link

Bug(react-infinite-viewer) : Scroll bar does not disappear immediately #67

Closed jiwon79 closed 11 months ago

jiwon79 commented 11 months ago

Problem

We can use the parameter(displayHorizontalScroll, displayVerticalScroll) to decide whether to show a scroll bar. I made visible variable using useState and button that toggle visible variable. However, the scrollbar does not disappear as soon as the button is pressed. After that, you have to scroll a little bit for it to disappear

Example - Code Sandbox

https://codesandbox.io/p/sandbox/infinite-viewer-r5z5ws?file=%2Fsrc%2FApp.css%3A8%2C16

daybrush commented 11 months ago

@jiwon79

infinite-viewer's new version is released. Check it again.

jiwon79 commented 11 months ago

I update version infinite-viewer react-infinite-viewer to 0.29.1 and 0.28.1. However the bug is not solved. Please check it in code sandbox link

daybrush commented 11 months ago

I think it's cached with old version.

if you create a new codesandbox, it look like this.

https://codesandbox.io/s/awesome-payne-6klyyn

jiwon79 commented 11 months ago

I check that it is currently operating normally. thank you