Skip to content

fix(chat): let taps on message actions work while the sheet animates - #6941

Merged
AndyScherzinger merged 1 commit into
masterfrom
fix/message-actions-sheet-taps
Oct 23, 2026
Merged

AndyScherzinger merged 1 commit into
masterfrom
fix/message-actions-sheet-taps

Conversation

@AndyScherzinger

Copy link
Copy Markdown
Member

Taps on the actions of the message long-press bottom sheet were often ignored. Only after expanding, collapsing or scrolling the sheet did a tap trigger the action.

Material3's ModalBottomSheet (1.4.0) puts draggable(startDragImmediately = isAnimationRunning) on the sheet. While the sheet animates, the drag starts on the touch down and consumes it, so the clickable of the action row cancels the tap. Dragging or scrolling ends in a settle animation that leaves the sheet in a settled state, after which taps work again.

The sheet gestures are now disabled while an animation runs (sheetGesturesEnabled = !sheetState.isAnimationRunning), for the message actions sheet and for the one of temporary messages. Dragging the sheet works again once it has settled.

🖼️ Screenshots

🏚️ Before 🏡 After
B A

🚧 TODO

  • Verify on a device: long press a message and tap an action right away, and tap one after the sheet has settled
  • Verify that swiping the sheet up/down and dismissing it still work

🏁 Checklist

  • ⛑️ Tests (unit and/or integration) are included or not needed
  • 🔖 Capability is checked or not needed
  • 🔙 Backport requests are created or not needed: /backport to stable-xx.x
  • 📅 Milestone is set
  • 🌸 PR title is meaningful (if it should be in the changelog: is it meaningful to users?)

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

@AndyScherzinger

Copy link
Copy Markdown
Member Author

Closing for now: the sheet's tap-swallowing during its animation is real in Material3 1.4.0, but on-device logs show taps landing after the sheet has settled, so this is not the cause of the reported issue. Investigating further with a debug build.

@AndyScherzinger
AndyScherzinger deleted the fix/message-actions-sheet-taps branch October 22, 2026 18:47
Material3's ModalBottomSheet starts its drag on the touch down while the
sheet is animating (startDragImmediately = isAnimationRunning). That drag
consumes the down, so the tap on an action row is cancelled and nothing
happens. Only after dragging or scrolling the sheet into a settled state
did taps reach the actions again.

Disable the sheet gestures while an animation runs, for both the message
actions sheet and the one for temporary messages. Dragging works again as
soon as the sheet has settled.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
@AndyScherzinger
AndyScherzinger force-pushed the fix/message-actions-sheet-taps branch from 6a0a6ac to ca23163 Compare October 22, 2026 18:49
@github-actions

Copy link
Copy Markdown
Contributor

📱 QA build

Download app-qa-debug.apk
QR code Open the QR code for this download
Commit ca23163
Version 6941
Available until 7 days after this build

The QA build installs alongside a released Nextcloud app, so you can keep
using your existing install while testing.

Downloading the file requires a GitHub account, so open this link on the
device you want to test on, or transfer the APK to it.

@github-actions

Copy link
Copy Markdown
Contributor

Codacy

Lint

TypemasterPR
Warnings138137
Errors1515

SpotBugs

CategoryBaseNew
Bad practice77
Correctness88
Dodgy code4040
Internationalization33
Malicious code vulnerability33
Performance88
Security1111
Total8080

@AndyScherzinger
AndyScherzinger marked this pull request as ready for review October 23, 2026 09:22
@AndyScherzinger AndyScherzinger added bug Something isn't working 3. to review Waiting for reviews labels Oct 23, 2026
@AndyScherzinger AndyScherzinger added this to the 25.1.0 milestone Oct 23, 2026
@AndyScherzinger
AndyScherzinger merged commit 599b513 into master Oct 23, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews AI assisted bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant