Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable viewports inputs when dragging and dropping into the viewport #91845

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ryevdokimov
Copy link
Contributor

@ryevdokimov ryevdokimov commented May 11, 2024

Fixes: #90112 and this comment #90112 (comment)

Having viewport inputs enabled while performing a drag and drop leads to issues especially in different navigation modes as mentioned in the linked issue. In theory the existing behavior sounds good, but in practice I believe it leads to more issues than it's worth. Usually, users put the target location in their viewport before dragging to it.

@ryevdokimov ryevdokimov requested a review from a team as a code owner May 11, 2024 17:53
@Chaosus Chaosus added this to the 4.3 milestone May 11, 2024
@akien-mga akien-mga requested a review from Calinou May 11, 2024 19:16
@ryevdokimov ryevdokimov force-pushed the disable-freelook-when-drag-and-drop branch from 29cf705 to ec070f2 Compare May 11, 2024 19:36
@ryevdokimov ryevdokimov marked this pull request as draft May 12, 2024 12:00
@ryevdokimov
Copy link
Contributor Author

ryevdokimov commented May 12, 2024

Just realized I haven't actually solved the problem, and it's a little bit more complex. Might have to look into disabling all input on the viewport before the data has even entered. I think this is more of an "input" problem, than simply not allowing certain functions depending on the drop data.

Edit: Yeah, I think that is probably the way to go, but correct me if I'm wrong.

@ryevdokimov ryevdokimov force-pushed the disable-freelook-when-drag-and-drop branch 2 times, most recently from a749522 to 8342eb4 Compare May 12, 2024 12:49
@ryevdokimov ryevdokimov marked this pull request as ready for review May 12, 2024 12:50
@ryevdokimov ryevdokimov changed the title Disable freelook when dragging and dropping into the viewport Disable viewports inputs when dragging and dropping into the viewport May 12, 2024
@ryevdokimov ryevdokimov force-pushed the disable-freelook-when-drag-and-drop branch from 8342eb4 to 824d21b Compare May 12, 2024 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Alt key conflict between scene drag and drop and 3D navigation scheme
2 participants