Fix range button scrolling in touchmode#1446
Conversation
📝 WalkthroughWalkthroughTwo pointer-handling bugs in shooter-mode touch input are fixed: button-initiated look-around aim pointer tracking is reorganized for consistent state initialization, and multi-pointer move events now route using actual Android pointer ids instead of loop indices. ChangesMulti-touch pointer handling and look-around aiming
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Description
This fixes the issue here:
https://discord.com/channels/1378308569287622737/1503770141635379381
Right now the range button is not scrollable when touchscreen mode is on. This PR fixes that issue.
Recording
Screen_Recording_20260515_221832_GameNative.mp4
Type of Change
Checklist
#code-changes, I have discussed this change there and it has been green-lighted. If I do not have access, I have still provided clear context in this PR. If I skip both, I accept that this change may face delays in review, may not be reviewed at all, or may be closed.CONTRIBUTING.md.Summary by cubic
Fixes range/slider scrolling in touch mode so users can drag the control without triggering look/aim. Dragging now feels smooth and consistent in shooter mode.
BUTTONelements; sliders/range controls no longer capture the look pointer.handleTouchMove(instead of pointer index) for correct multi‑touch tracking during drags.Written for commit bfb66ee. Summary will update on new commits. Review in cubic
Summary by CodeRabbit
Bug Fixes
Refactor