-
Notifications
You must be signed in to change notification settings - Fork 11
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
[Windows][macOS] SimpleButton up/over states incorrect render after MouseEvent.MOUSE_DOWN event with application focus losing #193
Labels
Comments
Another steps to reproduce this issue with application
You will see the same actual result as described in the issue. Code sample:
|
Issue still exists with latest AIR 33.1.1.620. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem Description
Up/over states of
SimpleButton
not render properly afterMouseEvent.MOUSE_DOWN
event and application focus losing. Also this issue reproducible even without application 'deactivate' with context menus.Tested with multiple AIR versions even with latests AIR 32.0.0.89, AIR 32.0.0.144 beta and AIR 33.0.2.338 with multiple Windows and macOS devices with different OS versions with 32-bit and 64-bit AIR applications with captive runtime.
Same problem in all cases.
May be such problems also exists with Android and iOS but I cannot reproduce it.
Tracker link: https://tracker.adobe.com/#/view/AIR-3722067
DisplayObject
target of MouseEvent.MOUSE_DOWN doesn't matter in such cases.Changing
stage.focus
after "losing focus" doesn't help.stage.nativeWindow.maximize()
after "losing focus" doesn't help.NativeApplication.nativeApplication.activate(stage.nativeWindow)
after "losing focus" doesn't help.Problem "fixes" after user left click on some display object after problem occurred (see steps below).
It works fine if application "lose focus" after
MouseEvent.RIGHT_MOUSE_DOWN
orMouseEvent.MIDDLE_MOUSE_DOWN
orMouseEvent.CLICK
event. (you can simply replaceMouseEvent.MOUSE_DOWN
toMouseEvent.RIGHT_MOUSE_DOWN
in code below to test it)In code below
Event.DEACTIVATE
event even doesn't fire. So technically application doesn't lose focus.Steps to Reproduce
MouseEvent.CLICK
butMouseEvent.MOUSE_DOWN
) on a button at top left corner of application. It show context menu.SimpleButton
.Application example with sources attached.
mouse_down_losing_focus_bug.zip
Actual Result:
Up and over states of
SimpleButton
doesn't render properly. Other buttons (if will be presented on the stage) also doesn't render up/over states properly when mouse move over/out them.Expected Result:
SimpleButton
correctly render up/over states when mouse move over/out of it.Known Workarounds
none
*write your own button implementation
The text was updated successfully, but these errors were encountered: