From c4173ae185cd6dda06ca679b1157fce308815335 Mon Sep 17 00:00:00 2001 From: ganfra Date: Thu, 8 Oct 2026 17:42:08 +0200 Subject: [PATCH] Fix the row selection documentation about sliding content --- .../messages/impl/timeline/model/TimelineItemSelectionData.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/model/TimelineItemSelectionData.kt b/features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/model/TimelineItemSelectionData.kt index eab6a2523f..be2c39c6bf 100644 --- a/features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/model/TimelineItemSelectionData.kt +++ b/features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/model/TimelineItemSelectionData.kt @@ -14,7 +14,8 @@ package io.element.android.features.messages.impl.timeline.model * behaviour (e.g. the whole-row click target) and must reflect the real mode, not [progress]. * @param isSelected whether this specific row's event is part of the current selection. * @param canBeSelected whether this specific row's event can be selected for the action selection mode was entered for. - * Rows which cannot be selected render no indicator, and their content does not slide. + * Rows which cannot be selected render no indicator and ignore clicks, but their content still slides: sliding only depends on the row being a + * start-aligned bubble, so that the bubbles stay aligned with each other. * @param progress animated 0f..1f value driving the visuals (content slide + indicator slide-in). * Animated once in TimelineView and shared by every row. Differs from [isSelectionModeActive] * during the enter/exit animation.