You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I add a contorl to the titlebar, and add Handlers PointerPressedEvent/PointerMovedEvent/PointerReleasedEvent/PointerCaptureLostEvent. When I press/move/release mouse left button over the control, all events trigger as expected.
If I just press mouse and move out the titlebar, PointerMovedEvent will not trigger, unless I release the left button. PointerReleasedEvent does not trigger at this point, and e.GetCurrentPoint(this).Properties.IsLeftButtonPressed still return true in PointerMovedEvent event, until I press left button and release next time.
But If I remove property OSXThickTitleBar from ExtendClientAreaChromeHints, everything works well.
Here is a demo video:
iShot_2024-05-12_01.01.30.mp4
Here is the other demo which works perfect when I just remove OSXThickTitleBar property from ExtendClientAreaChromeHints:
iShot_2024-05-12_01.27.21.mp4
To Reproduce
Set window properties ExtendClientAreaToDecorationsHint="True" / ExtendClientAreaTitleBarHeightHint="38" / ExtendClientAreaChromeHints="Default,OSXThickTitleBar"
Add a control to the top, use the following code to listen for events
Describe the bug
I add a contorl to the titlebar, and add Handlers
PointerPressedEvent
/PointerMovedEvent
/PointerReleasedEvent
/PointerCaptureLostEvent
. When I press/move/release mouse left button over the control, all events trigger as expected.If I just press mouse and move out the titlebar,
PointerMovedEvent
will not trigger, unless I release the left button.PointerReleasedEvent
does not trigger at this point, ande.GetCurrentPoint(this).Properties.IsLeftButtonPressed
still returntrue
inPointerMovedEvent
event, until I press left button and release next time.But If I remove property
OSXThickTitleBar
fromExtendClientAreaChromeHints
, everything works well.Here is a demo video:
iShot_2024-05-12_01.01.30.mp4
Here is the other demo which works perfect when I just remove
OSXThickTitleBar
property from ExtendClientAreaChromeHints:iShot_2024-05-12_01.27.21.mp4
To Reproduce
ExtendClientAreaToDecorationsHint="True"
/ExtendClientAreaTitleBarHeightHint="38"
/ExtendClientAreaChromeHints="Default,OSXThickTitleBar"
Expected behavior
No response
Avalonia version
11.0.10
OS
macOS
Additional context
No response
The text was updated successfully, but these errors were encountered: