Skip to content

Conversation

@ogoffart
Copy link
Member

Fixes #9760

Drag&drop over transformed item is still not working properly so this is disabled

Fixes #9760

Drag&drop over transformed item is still not working properly so this is
disabled
let supports_transformations = self
.window_adapter()
.map(|adapter| adapter.renderer().supports_transformations())
.unwrap_or(true);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Should this maybe default to false? That seems safer.
  2. Does it make sense to extract that into some helper function? You are repeating it below and it seems to be generically a useful bit of information that might be relevant in more places.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. This just moves code around. Did that to move it outside of the loop. and i wanted to keep the two functions the same. Not sure true or false is any safer. If there is no window_adapter the result may be wrong.
  2. Yeah, map_to_window and `map_to_item_tree are duplicated code. I wanted to merge them actually. I wanted to actually merge them by calling one from the other, but i wasn't sure about the implications.

@ogoffart ogoffart merged commit 9f4b3cd into master Oct 18, 2025
41 checks passed
@ogoffart ogoffart deleted the olivier/live-preview branch October 18, 2025 09:59
ogoffart added a commit that referenced this pull request Oct 21, 2025
ogoffart added a commit that referenced this pull request Oct 23, 2025
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.

transform-scale does not adjust live-preview selection highlight

2 participants