Fix tilt recomposition jank on foldable devices - #1
Open
aldefy wants to merge 2 commits into
Open
Conversation
Derives the count from CanvasViewModel.stickers and renders a small numeric badge on the History FAB. Also pins rebound to 0.2.2 (0.2.1 was never published) and adds docs/intents/001 describing the goal, constraints, and failure conditions for this change. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Eliminates 3 Rebound budget violations (rememberTiltState, rememberTiltSensorProvider, rememberHapticFeedback all 18/s+ → 0/s). Adds 100ms throttle + 0.2f rounding to sensor data before state update. Maintains 60fps smooth animation on Pixel 9 Pro Fold foldable. - TiltEffect.kt: 100ms debounce + rounding threshold logic - ShimmerGlow.kt: Fix KMP-incompatible Math.toRadians() for common code - Verified: Rebound 0 violations, all 10 expectations passing (E1–E10) - Intent guard: PASS (L1–L3 all green) Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Eliminates 3 Rebound budget violations in tilt sensor handling:
Stickers now animate fluidly at 60fps without jank on Pixel 9 Pro Fold foldable.
Changes
Math.toRadians()callTest plan
Intent & Expectations
🤖 Generated with Claude Code