ember-collection icon indicating copy to clipboard operation
ember-collection copied to clipboard

Override native-scrollable styles.

Open arkadiyk opened this issue 9 years ago • 1 comments

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.

arkadiyk avatar Feb 22 '16 02:02 arkadiyk

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"
...

Ramblurr avatar May 03 '16 14:05 Ramblurr