Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(mobile): reduce thread feed scroll jank #4874

Mergedgabrielelpidio(GitHub profile, opens in a new tab)merged 2 commits intomain fromrefs/pull/4874/headmerged by gabrielelpidio(GitHub profile, opens in a new tab) View on GitHub

Showing 3 changed files with 107 additions and 6 deletions (loading 2).

x
0 of 3 viewed, 3 left
107 additions and 6 deletionsapps/mobile/src/features/threads/ThreadFeed.tsxModified
View file
@@ -48,7 +48,9 @@
import Animated, {
FadeIn,
FadeInUp,
- LinearTransition,
+ useSharedValue,
+ withTiming,
+ type LayoutAnimationsValues,
type SharedValue,
} from "react-native-reanimated";
import { useThemeColor } from "../../lib/useThemeColor";
@@ -80,7 +82,9 @@
import {
resolveMarkdownFontSizes,
resolveNativeMarkdownTypography,
+ scaledTypographyLineHeight,
} from "../../lib/appearancePreferences";
+import { MOBILE_TYPOGRAPHY } from "../../lib/typography";
import { useAppearancePreferences } from "../settings/appearance/AppearancePreferencesProvider";
import { useAppearanceCodeSurface } from "../settings/appearance/useAppearanceCodeSurface";
import { markdownFileIconSource } from "@t3tools/mobile-markdown-text/file-icons";
@@ -91,7 +95,12 @@
type ThreadFeedLatestTurn,
} from "../../lib/threadActivity";
import type { ThreadContentPresentation } from "./threadContentPresentation";
-import { ThreadWorkGroupToggle, ThreadWorkLog } from "./thread-work-log";
+import {
+ collapsedWorkLogHeight,