Skip to content

Fix: Adapt to new bahaviour of bevy_picking with bevy_window::window:…#60

Closed
ccoder1337 wants to merge 2 commits intoaevyrie:mainfrom
ccoder1337:fix/picking_window_sussy_baka
Closed

Fix: Adapt to new bahaviour of bevy_picking with bevy_window::window:…#60
ccoder1337 wants to merge 2 commits intoaevyrie:mainfrom
ccoder1337:fix/picking_window_sussy_baka

Conversation

@ccoder1337
Copy link

PR Fixes #55.

If background is clicked a hit on Window is registered with hit.position holding the pointer coordinates in screen space.

This was apparently changed in bevyengine/bevy/pull/21802.

There may be several possible approaches, but I removed the default case where pointer position is manually retrieved.

I also removed unnecessary checking of zoom velocity when EditorCam.current_motion.is_zooming_only() is false. If that's not wanted in this PR I can remove it.

@ccoder1337 ccoder1337 force-pushed the fix/picking_window_sussy_baka branch 3 times, most recently from eb21249 to 4fa69bc Compare January 10, 2026 01:20
@ccoder1337
Copy link
Author

ccoder1337 commented Jan 10, 2026

#56 seems to fix it already. This is a slightly different approach. I'll just leave it as draft.

@ccoder1337 ccoder1337 force-pushed the fix/picking_window_sussy_baka branch from 4fa69bc to b11ac65 Compare January 10, 2026 01:26
@ccoder1337 ccoder1337 marked this pull request as ready for review January 10, 2026 01:31
@ccoder1337
Copy link
Author

Actually no don't merge this this is not backward compatible to 0.17.0

@ccoder1337 ccoder1337 closed this Jan 10, 2026
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.

Using the window as an anchor causes fast unexpected movement

1 participant

Comments