Skip to content

Commit 7fe688e

Browse files
committed
smooth scrolling on iOS
1 parent 6b02a09 commit 7fe688e

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# upcoming
22

33
- (new) serve on unix socket (thanks to @rvighne)
4+
- (fix) smooth scrolling on iOS (thanks to gatheraled)
45

56
# v2.5 (2025-03-26)
67

src/assets/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
</button>
123123
</dropdown>
124124
</div>
125-
<div id="feed-list-scroll" class="p-2 overflow-auto border-top flex-grow-1">
125+
<div id="feed-list-scroll" class="p-2 overflow-auto scroll-touch border-top flex-grow-1">
126126
<label class="selectgroup">
127127
<input type="radio" name="feed" value="" v-model="feedSelected">
128128
<div class="selectgroup-label d-flex align-items-center w-100">
@@ -272,7 +272,7 @@
272272
</button>
273273
</dropdown>
274274
</div>
275-
<div id="item-list-scroll" class="p-2 overflow-auto border-top flex-grow-1" v-scroll="loadMoreItems" ref="itemlist">
275+
<div id="item-list-scroll" class="p-2 overflow-auto scroll-touch border-top flex-grow-1" v-scroll="loadMoreItems" ref="itemlist">
276276
<label v-for="item in items" :key="item.id"
277277
class="selectgroup">
278278
<input type="radio" name="item" :value="item.id" v-model="itemSelected">
@@ -347,7 +347,7 @@
347347
</div>
348348
<div v-if="itemSelectedDetails"
349349
ref="content"
350-
class="content px-4 pt-3 pb-5 border-top overflow-auto"
350+
class="content px-4 pt-3 pb-5 border-top overflow-auto scroll-touch"
351351
:class="{'font-serif': theme.font == 'serif', 'font-monospace': theme.font == 'monospace'}"
352352
:style="{'font-size': theme.size + 'rem'}">
353353
<div class="content-wrapper">

src/assets/stylesheets/app.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@ select.form-control:not([multiple]):not([size]) {
100100
padding-right: 0;
101101
}
102102

103+
.scroll-touch {
104+
-webkit-overflow-scrolling: touch;
105+
}
106+
103107
/* custom elements */
104108

105109
.font-serif {

0 commit comments

Comments
 (0)