Skip to content

Conversation

@rachel-fenichel
Copy link
Collaborator

Fixes #368

Will be used in constrained dragging.

Note that if the values are not in the expected ranges, getDirectionFromXY will return null instead of estimating the direction. These are supposed to be paired, and getDirectionFromXY is not intended to be used for arbitrary xy -> direction. That could be changed later if it needs to be more general.

This is built for LTR mode.

@rachel-fenichel rachel-fenichel requested a review from a team as a code owner April 3, 2025 17:09
@rachel-fenichel rachel-fenichel requested review from BenHenning and RoboErikG and removed request for a team and BenHenning April 3, 2025 17:09
@rachel-fenichel rachel-fenichel merged commit 5eaf7cc into RaspberryPiFoundation:main Apr 3, 2025
2 checks passed
@rachel-fenichel rachel-fenichel deleted the add_drag_direction branch April 3, 2025 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make helpers to pack and unpack key information into a fake pointer event in DragMover.

2 participants