This repository has been archived on 2022-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
outline/app/components/Scrollable/Scrollable.js
Tom Moor 8a884b446d Improve scrolling behavior
Prevent scrolling in the sidebar/ content area scrolling the other section when the boundary of a scrolling area is reached.

https://developer.mozilla.org/en-US/docs/Web/CSS/overscroll-behavior
2018-03-10 11:26:29 -08:00

13 lines
236 B
JavaScript

// @flow
import styled from 'styled-components';
const Scrollable = styled.div`
height: 100%;
overflow-y: auto;
overflow-x: hidden;
overscroll-behavior: none;
-webkit-overflow-scrolling: touch;
`;
export default Scrollable;