Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scrolling not smooth on touch devices (Mobile and Tablets) #246

Open
carlospence opened this issue Oct 30, 2020 · 2 comments
Open

Scrolling not smooth on touch devices (Mobile and Tablets) #246

carlospence opened this issue Oct 30, 2020 · 2 comments

Comments

@carlospence
Copy link

carlospence commented Oct 30, 2020

I was using react-fluid-table and needed infinite scrolling but wasn't implemented in react-fluid-table and I got to know about react-base-table and was really happy about its rich features, so I replaced the fluid-table with base-table in one of my component. I noticed that on desktop or laptop devices with mouse, the scrolling is smooth but on touch devices like my phone (Android) and windows tablet, the scrolling is not smooth. It looks draggy and the total items are just 200 rows. I now put both fluid-table and base-table in the component for comparison. fluid-table is quite very smooth when scrolling while base-table drags as if each row is been forced to move. I removed AutoResizer and still the same, used estimatedRowHeight, still the same.

I really want to use base-table because of its feature rich but the smooth scrolling will definitely make me reconsider other options like implement the infinite loading on react-fluid-table.

I recorded the screen of my app using react-fluid-table vs react-base-table.

App Screen recorder

@nihgwu
Copy link
Contributor

nihgwu commented Oct 30, 2020

That's interesting regarding both are using react-window, but TBH BaseTable is not designed for mobile/tablet, and I think in your use case a list would be enough, no need to be a table

@carlospence
Copy link
Author

carlospence commented Oct 31, 2020

Yes, in my use case a list could be enough, on bigger screen, I use more columns and on mobile, I collapse the information into two columns, so instead of using multiple component, I decided to use one react-window based table component. So I hide some columns on mobile view and change the renderer. That way, I don't have to maintain different code and library for different views. Note, the first column has a checkbox underneath, ontouch or hover, the letter Avatar changes to checkbox.

I already have a page that I used List for mobile view and Grid for desktop view and I don't think I like the maintenance process of the codes.

Hope, there is something that can be done to optimized for mobile/tablet in the nearest future. Am already implementing infinite loading for react-fluid-table.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants