Skip to content

Cannot vertically scroll page when scroll gesture is within .responsive-table #16184

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

Closed
atragan opened this issue Mar 30, 2015 · 7 comments
Closed
Labels

Comments

@atragan
Copy link

atragan commented Mar 30, 2015

Hi,

i have a responsive table with 100 rows and when i am in the mobile view there is no way to scroll the table vertically. Is there anything that i am doing wrong or this is something that Bootstrap doesn't support?

@mdo
Copy link
Member

mdo commented Mar 30, 2015

Bootstrap doesn't support vertical scrolling in tables on mobile, but you can add that with a max-height and some overflow-y: scroll.

@mdo mdo closed this as completed Mar 30, 2015
@cvrebert cvrebert added the css label Mar 30, 2015
@atragan
Copy link
Author

atragan commented Mar 31, 2015

the problem that i have is if a user wants to scroll the viewport up or down and tries to do that when he has clicked inside the table, then the scrolling doesn't work (nothing happens). If the user tries to scroll the viewport and he has clicked anywhere else apart from the table, then the viewport is scrolled.

You can see the attachment if it helps.

Andreas
screenshot

@russplaysguitar
Copy link

I had a similar problem with table-responsive preventing vertical scrolling of a parent div with overflow: auto. Resolved it by adding -webkit-overflow-scrolling: touch; to the parent div. In case anyone else has this issue.

@cvrebert
Copy link
Collaborator

Looks like this bug report was misinterpreted due to some unclear phrasing in the description. Reopening.

@cvrebert cvrebert reopened this Jun 24, 2016
@cvrebert cvrebert changed the title Vertical scrolling in responsive table Cannot vertically scroll page when scroll gesture is within .responsive-table Jun 24, 2016
@cvrebert cvrebert added the v3 label Jun 24, 2016
@mdo
Copy link
Member

mdo commented Sep 5, 2016

Bootstrap 3 is no longer being officially developed or supported.

All work has moved onto our next major release, v4. As such, this issue or pull request is being closed as a "won't fix." For additional help and support, we recommend utilizing our community resources. Thanks for your understanding, and see you on the other side of v4!

<3,
@mdo and team

@mdo mdo closed this as completed Sep 5, 2016
@nawlbergs
Copy link

For anyone who ends up here looking for temporary fixes/hacks:
http://stackoverflow.com/questions/21706505/bootstrap-responsive-table-not-scrolling-vertically-on-ios-devices/26885539#26885539

-webkit-overflow-scrolling: touch; // apparently this can resolve the issue by adding it to the parent dom element that is causing the bug.

@Nenrikido
Copy link

Nenrikido commented Feb 7, 2019

I just had this issue and an other fix is to remove the potential height:100% from the element you want to scroll on (and of course containing an overflow:scroll rule) and to add a fixed or responsive height or max-height such as height:100vh.
This worked perfectly for me and makes perfect sense, as height in percentage is scaled on the size of the whole element with overflow.

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

No branches or pull requests

6 participants