Skip to content

Commit da4bf6b

Browse files
committed
refactor: remove usage of deprecated webkit-overflow-scrolling
1 parent 55997ff commit da4bf6b

File tree

6 files changed

+3
-9
lines changed

6 files changed

+3
-9
lines changed

site/src/pages/menus/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function Menus() {
8585

8686
<p>
8787
We recommend enabling submenus via JavaScript to enable accessibility.
88-
To help get you started, <a href="/js/menus.js">an example script</a>
88+
To help get you started, <a href="/js/menus.js">an example script</a>
8989
written in vanilla JS provides ARIA support, limited submenu arrow-key
9090
navigation, and the ability to dismiss menus with an outside event or
9191
the ESC key. But you may wish to go further by adding edge detection,
@@ -154,7 +154,7 @@ function Menus() {
154154

155155
<p>
156156
To create a scrollable horizontal menu, add the <code>pure-menu-scrollable</code> class name. When
157-
there isn't enough room, the menu items can be scrolled or flicked. Dropdown menus are not supported.
157+
there isn't enough room, the menu items can be scrolled or flicked. Dropdown menus are not supported. If you would like momentum-based scrolling we recommend using a JS library like <a href="https://github.com/ilyashubin/scrollbooster">scrollbooster</a> to add such effects.
158158
</p>
159159

160160
<Example>

site/src/pages/start/styles.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@
7474

7575
.grid-output .code {
7676
overflow-y: scroll;
77-
-webkit-overflow-scrolling: touch;
7877
margin: 0;
7978
}
8079
#css .code,

site/static/css/main.css

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,6 @@ code {
208208
border-left-width: 0;
209209
border-right-width: 0;
210210
overflow-x: auto;
211-
-webkit-overflow-scrolling: touch;
212211
}
213212
.code pre {
214213
margin: 0;
@@ -291,7 +290,6 @@ code {
291290
z-index: 1000; /* so the menu or its navicon stays above all content */
292291
background: #191818;
293292
overflow-y: auto;
294-
-webkit-overflow-scrolling: touch;
295293
}
296294
#menu a {
297295
color: #999;
@@ -464,7 +462,6 @@ a.pure-button-primary {
464462
margin-left: -1em;
465463
margin-right: -1em;
466464
overflow-x: auto;
467-
-webkit-overflow-scrolling: touch;
468465
margin-bottom: 1em;
469466
}
470467
.table-responsive table {

site/static/layouts/side-menu/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ <h2>A subtitle for your page goes here</h2>
4343
<div class="content">
4444
<h2 class="content-subhead">How to use this layout</h2>
4545
<p>
46-
To use this layout, you can just copy paste the HTML, along with the CSS in <a href="/css/layouts/side-menu.css" alt="Side Menu CSS">side-menu.css</a>, and the JavaScript in <a href="/js/ui.js">ui.js</a>. The JS file uses vanilla JavaScript to simply toggle an <code>active</code> class that makes the menu responsive.
46+
To use this layout, you can just copy paste the HTML, along with the CSS in <a href="/layouts/side-menu/styles.css" alt="Side Menu CSS">side-menu.css</a>, and the JavaScript in <a href="/js/ui.js">ui.js</a>. The JS file uses vanilla JavaScript to simply toggle an <code>active</code> class that makes the menu responsive.
4747
</p>
4848

4949
<h2 class="content-subhead">Now Let's Speak Some Latin</h2>

site/static/layouts/side-menu/styles.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ appears on the left side of the page.
8989
z-index: 1000; /* so the menu or its navicon stays above all content */
9090
background: #191818;
9191
overflow-y: auto;
92-
-webkit-overflow-scrolling: touch;
9392
}
9493
/*
9594
All anchors inside the menu should be styled like this.

src/menus/css/menus-scrollable.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
white-space: nowrap;
1717
overflow-y: hidden;
1818
overflow-x: auto;
19-
-webkit-overflow-scrolling: touch;
2019
/* a little extra padding for this style to allow for scrollbars */
2120
padding: .5em 0;
2221
}

0 commit comments

Comments
 (0)