🐛 Fixed posts list scrolling and missing momentum scroll on all screens in iOS

closes https://github.com/TryGhost/Ghost/issues/9494, refs https://github.com/TryGhost/Ghost/issues/10365
- removed `overflow-y: auto` on posts list to fix the vertical scrolling
- added `overflow-wrap: break-word` so that post previews are forced to wrap for long words such as URLs
- added `-webkit-overflow-scrolling: touch` to the main scrollable pane so that iOS Safari uses momentum scrolling
This commit is contained in:
Kevin Ansfield 2019-04-15 17:23:09 +01:00
parent b30a81c3f8
commit 42eb736b15
2 changed files with 2 additions and 1 deletions

View File

@ -105,7 +105,6 @@
.content-list {
position: relative;
overflow-y: auto;
}
.content-list ol {
@ -140,6 +139,7 @@
margin: 0;
font-size: 1.6rem;
font-weight: 300;
overflow-wrap: break-word;
}

View File

@ -32,6 +32,7 @@
overflow-y: auto;
/* prevent horizontal scroll in IE11 */
overflow-x: hidden;
-webkit-overflow-scrolling: touch;
}
/* Flexbox fix. https://github.com/TryGhost/Ghost/issues/5804#issuecomment-141416812 */