Skip to content

Open-source Android PDF and document toolkit with PDF tools, Office viewing, XLSX editing, scanning, and image editing. Built with Kotlin and Jetpack Compose.

Desk chips' glass follows every frame as the desk scrolls

chethan6167d3db1cc6c6f
diff --git a/android/app/src/main/java/com/chethan616/clearpdf/ui/home/HomeScreen.kt b/android/app/src/main/java/com/chethan616/clearpdf/ui/home/HomeScreen.kt
index 9e2f70c..215795d 100644
--- a/android/app/src/main/java/com/chethan616/clearpdf/ui/home/HomeScreen.kt
+++ b/android/app/src/main/java/com/chethan616/clearpdf/ui/home/HomeScreen.kt
@@ -462,7 +462,11 @@ private fun FilterChips(selected: DeskFilter, onSelect: (DeskFilter) -> Unit) {
layout(c.maxWidth, p.height) { p.place(-extra, 0) }
}
.padding(top = 16.dp, bottom = 10.dp)
- .chipRowFade(),
+ .chipRowFade()
+ // The chips are the desk's most visible glass: the desk's throttle (ten fresh backdrops a
+ // second while it scrolls) made their refraction lag and jump as they scrolled with it.
+ // The nearest throttle governs, so this row's says never: its glass follows every frame.
+ .throttleBackdrops { false },
contentPadding = PaddingValues(horizontal = 20.dp),
horizontalArrangement = Arrangement.spacedBy(10.dp),
) {