aboutsummaryrefslogtreecommitdiffstats
path: root/apps/mobile/components/bookmarks
diff options
context:
space:
mode:
authorLandon Epps <landon.epps@gmail.com>2025-08-20 04:50:12 -0400
committerGitHub <noreply@github.com>2025-08-20 09:50:12 +0100
commit5f07b5075dd45b4b0f4ab35ee70412f11177eff4 (patch)
treef0928f8227edef62c598abeccbeabe6f73c81f70 /apps/mobile/components/bookmarks
parent5b9125084aa26253fac0aeb18af095c17066a63a (diff)
downloadkarakeep-5f07b5075dd45b4b0f4ab35ee70412f11177eff4.tar.zst
fix(mobile): fix WebView deceleration rate on iOS (#1835)
The mobile app uses a WebView to display the bookmark preview. WebView on iOS has a "fast" deceleration rate by default, which is much slower than the system default. We should update it to "normal" to match the non-WebView screens in the app.
Diffstat (limited to 'apps/mobile/components/bookmarks')
-rw-r--r--apps/mobile/components/bookmarks/BookmarkLinkPreview.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/mobile/components/bookmarks/BookmarkLinkPreview.tsx b/apps/mobile/components/bookmarks/BookmarkLinkPreview.tsx
index 03999c3e..443d6284 100644
--- a/apps/mobile/components/bookmarks/BookmarkLinkPreview.tsx
+++ b/apps/mobile/components/bookmarks/BookmarkLinkPreview.tsx
@@ -112,6 +112,7 @@ export function BookmarkLinkReaderPreview({
}}
showsVerticalScrollIndicator={false}
showsHorizontalScrollIndicator={false}
+ decelerationRate="normal"
/>
</View>
);
@@ -145,6 +146,7 @@ export function BookmarkLinkArchivePreview({
startInLoadingState={true}
mediaPlaybackRequiresUserAction={true}
source={webViewUri}
+ decelerationRate="normal"
/>
);
}