Skip to content

Conversation

Susko3
Copy link
Member

@Susko3 Susko3 commented May 8, 2022

Depends on:

Partially resolves #4055. Now the issue only happens when relative mode is enabled.

To get mouse capture for relative mode, we'd probably want to do it locally in MouseHandler by keeping track of pressed buttons.

if (window != null)
updateRelativeMode();
});
window.MouseAutoCapture = !e.NewValue;
Copy link
Member

@frenzibyte frenzibyte May 8, 2022

Choose a reason for hiding this comment

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

This is actually the first time a hint is dynamically enabled/disabled. Is there a reason not to keep this enabled when relative mode is on? if so, that should be mentioned in the xmldoc of the property, for future readers.

In fact, the value of this bindable may not necessarily determine the actual internal state of RelativeMouseMode. Is there also a reason having this here and not inside the RelativeMouseMode property window-side?

Copy link
Member Author

Choose a reason for hiding this comment

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

Setting in RelativeMouseMode is wrong, as relative mode is disabled when leaving the window. MouseAutoCapture should mirror UseRelativeMode.

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.

Held mouse buttons aren't updated when the cursor is outside of the window
3 participants