Skip to content

Commit 7dbe400

Browse files
committed
Add new "scrolling-touch" and "scrolling-auto" utilities
1 parent 83a66d2 commit 7dbe400

File tree

3 files changed

+43
-1
lines changed

3 files changed

+43
-1
lines changed

__tests__/fixtures/tailwind.css

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2246,6 +2246,14 @@ button,
22462246
-ms-overflow-style: -ms-autohiding-scrollbar;
22472247
}
22482248

2249+
.scrolling-touch {
2250+
-webkit-overflow-scrolling: touch;
2251+
}
2252+
2253+
.scrolling-auto {
2254+
-webkit-overflow-scrolling: auto;
2255+
}
2256+
22492257
.w-1 {
22502258
width: 0.25rem;
22512259
}
@@ -5181,6 +5189,14 @@ button,
51815189
-ms-overflow-style: -ms-autohiding-scrollbar;
51825190
}
51835191

5192+
.sm\:scrolling-touch {
5193+
-webkit-overflow-scrolling: touch;
5194+
}
5195+
5196+
.sm\:scrolling-auto {
5197+
-webkit-overflow-scrolling: auto;
5198+
}
5199+
51845200
.sm\:w-1 {
51855201
width: 0.25rem;
51865202
}
@@ -8117,6 +8133,14 @@ button,
81178133
-ms-overflow-style: -ms-autohiding-scrollbar;
81188134
}
81198135

8136+
.md\:scrolling-touch {
8137+
-webkit-overflow-scrolling: touch;
8138+
}
8139+
8140+
.md\:scrolling-auto {
8141+
-webkit-overflow-scrolling: auto;
8142+
}
8143+
81208144
.md\:w-1 {
81218145
width: 0.25rem;
81228146
}
@@ -11053,6 +11077,14 @@ button,
1105311077
-ms-overflow-style: -ms-autohiding-scrollbar;
1105411078
}
1105511079

11080+
.lg\:scrolling-touch {
11081+
-webkit-overflow-scrolling: touch;
11082+
}
11083+
11084+
.lg\:scrolling-auto {
11085+
-webkit-overflow-scrolling: auto;
11086+
}
11087+
1105611088
.lg\:w-1 {
1105711089
width: 0.25rem;
1105811090
}
@@ -13989,6 +14021,14 @@ button,
1398914021
-ms-overflow-style: -ms-autohiding-scrollbar;
1399014022
}
1399114023

14024+
.xl\:scrolling-touch {
14025+
-webkit-overflow-scrolling: touch;
14026+
}
14027+
14028+
.xl\:scrolling-auto {
14029+
-webkit-overflow-scrolling: auto;
14030+
}
14031+
1399214032
.xl\:w-1 {
1399314033
width: 0.25rem;
1399414034
}

docs/source/_layouts/documentation.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
@section('body')
44

55
<div class="min-h-screen">
6-
<div id="sidebar" class="hidden z-50 fixed pin-y pin-l overflow-y-scroll bg-smoke-light w-4/5 md:w-full md:max-w-xs flex-none border-r-2 border-smoke md:flex flex-col">
6+
<div id="sidebar" class="hidden z-50 fixed pin-y pin-l overflow-y-scroll scrolling-touch bg-smoke-light w-4/5 md:w-full md:max-w-xs flex-none border-r-2 border-smoke md:flex flex-col">
77
<div class="border-b border-smoke flex-none px-8 py-6">
88
<div class="hidden md:flex md:justify-center mb-4">
99
<a href="/" class="flex justify-center">

src/generators/overflow.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,7 @@ export default function() {
88
'overflow-scroll': { overflow: 'scroll' },
99
'overflow-x-scroll': { 'overflow-x': 'auto', '-ms-overflow-style': '-ms-autohiding-scrollbar' },
1010
'overflow-y-scroll': { 'overflow-y': 'auto', '-ms-overflow-style': '-ms-autohiding-scrollbar' },
11+
'scrolling-touch': { '-webkit-overflow-scrolling': 'touch' },
12+
'scrolling-auto': { '-webkit-overflow-scrolling': 'auto' },
1113
})
1214
}

0 commit comments

Comments
 (0)