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

Override native-scrollable styles. #103

Open
arkadiyk opened this issue Feb 22, 2016 · 1 comment
Open

Override native-scrollable styles. #103

arkadiyk opened this issue Feb 22, 2016 · 1 comment

Comments

@arkadiyk
Copy link
Contributor

ember-native-scrollable sets overflow: scroll for mobile devices.

what is the best way to override it with: overflow-y: scroll; overflow-x: hidden; ?

Thanks.

@Ramblurr
Copy link

Ramblurr commented May 3, 2016

Just ran across this too.

On iOS devices the default overflow:scroll (or even auto) behavior results in bouncy over-scroll in 2 dimensions.

For collections where scrolling is only desired in one dimension we need to set overflow-? to hidden, but this isn't possible given the current implementation of ember-native-scrollable.

As a workaround I'm using some hacky css:

.ember-collection--no-scroll-x {
  & > div {
    overflow-x: hidden !important;
  }
}
{{#ember-collection
    class="ember-collection--no-scroll-x"
...

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