From 5e3da1572f4b78ddce6ea46e226fdd042765a22b Mon Sep 17 00:00:00 2001 From: Jonathan Reinink Date: Wed, 1 Nov 2017 20:56:34 -0400 Subject: [PATCH] Add scrolling-touch/auto docs --- docs/source/docs/overflow.blade.md | 48 +++++++++++++++++++----------- 1 file changed, 30 insertions(+), 18 deletions(-) diff --git a/docs/source/docs/overflow.blade.md b/docs/source/docs/overflow.blade.md index 929e72b99..4c3f44e8c 100644 --- a/docs/source/docs/overflow.blade.md +++ b/docs/source/docs/overflow.blade.md @@ -18,11 +18,6 @@ title: "Overflow"
- - - - - @@ -32,35 +27,45 @@ title: "Overflow" - - - + + + - - + + - - + + - - + + - - + + - - + + + + + + + + + + + +
Class
.overflow-visibleoverflow: visible;Prevent content within an element from being clipped..overflow-visibleoverflow: visible;Don't clip content that overflows the element.
.overflow-autooverflow: auto;.overflow-autooverflow: auto; Add scrollbars to an element if needed.
.overflow-hiddenoverflow: hidden;.overflow-hiddenoverflow: hidden; Clip any content that overflows the element.
.overflow-x-scrolloverflow-x: auto;.overflow-x-scrolloverflow-x: auto; Allow horizontal scrolling if needed.
.overflow-y-scrolloverflow-y: auto;.overflow-y-scrolloverflow-y: auto; Allow horizontal scrolling if needed.
.overflow-scrolloverflow: scroll;.overflow-scrolloverflow: scroll; Add scrollbars to an element.
.scrolling-touch-webkit-overflow-scrolling: touch;Use momentum-based scrolling on touch devices.
.scrolling-auto-webkit-overflow-scrolling: auto;Use "regular" scrolling on touch devices.
@@ -161,6 +166,13 @@ Use `.overflow-scroll` to add scrollbars to an element. Unlike `.overflow-auto`, @endslot @endcomponent +### Momentum-based scrolling on touch devices + +Use `.scrolling-touch` to use momentum-based scrolling on touch devices. This causes content to continue scrolling for a while after finishing the scroll gesture and removing your finger from the touchscreen. The speed and duration of the continued scrolling is proportional to how vigorous the scroll gesture was. + +### Regular scrolling on touch devices + +Use `.scrolling-auto` to use "regular" scrolling on touch devices. This causes scrolling to immediately cease when you remove your finger from the touchscreen. ## Responsive