// Prevent text overflow on pre
pre {
overflow: auto;
+ -webkit-overflow-scrolling: touch;
}
// Make reset inherit font-family instead of settings sans-serif
left: 0;
height: 100%;
overflow-y: auto;
+ -webkit-overflow-scrolling: touch;
@each $name, $size in $sizes {
@include breakpoint($name) {
right: 0;
height: 100%;
overflow-y: auto;
+ -webkit-overflow-scrolling: touch;
@each $name, $size in $sizes {
@include breakpoint($name) {
left: 0;
width: 100%;
overflow-x: auto;
+ -webkit-overflow-scrolling: touch;
@each $name, $size in $sizes {
@include breakpoint($name) {
left: 0;
width: 100%;
overflow-x: auto;
+ -webkit-overflow-scrolling: touch;
@each $name, $size in $sizes {
@include breakpoint($name) {
display: none;
background-color: $background;
overflow-y: auto;
+ -webkit-overflow-scrolling: touch;
}
/// Adds base styles for a modal.
&.zf-has-scroll {
overflow-y: scroll;
+ -webkit-overflow-scrolling: touch;
}
body { // sass-lint:disable-line no-qualifying-elements
margin-right: auto;
margin-left: auto;
overflow-y: auto;
+ -webkit-overflow-scrolling: touch;
// Remove padding
&.collapse {
/// @param {String} $overflow [] Overflow classes
@mixin overflow($overflow) {
overflow: $overflow !important;
+ @if $overflow == 'scroll' {
+ -webkit-overflow-scrolling: touch;
+ }
}
/// Overflow classes on horizontal axis, by default coming through a map `$prototype-overflow`
/// @param {String} $overflow [] Overflow classes (horizontal axis)
@mixin overflow-x($overflow) {
overflow-x: $overflow !important;
+ @if $overflow == 'scroll' {
+ -webkit-overflow-scrolling: touch;
+ }
}
/// Overflow classes on vertical axis, by default coming through a map `$prototype-overflow`
/// @param {String} $overflow [] Overflow classes (vertical axis)
@mixin overflow-y($overflow) {
overflow-y: $overflow !important;
+ @if $overflow == 'scroll' {
+ -webkit-overflow-scrolling: touch;
+ }
}
@mixin foundation-prototype-overflow {