NSTrackingArea doesn't send mouseMoved: after resizing window's southeast corner
| Originator: | thakis | ||
| Number: | rdar://13284319 | Date Originated: | 02/25/13 |
| Status: | open | Resolved: | |
| Product: | os x | Product Version: | 10.8 |
| Classification: | serious bug | Reproducible: | always |
25-Feb-2013 02:44 PM Nico Weber:
Steps to Reproduce:
Run the attached project. It is a custom view covering the whole NSWindow, and autoresizing to match the window's size. The view has a
[[NSTrackingArea alloc] initWithRect:frame
options:NSTrackingMouseMoved |
NSTrackingMouseEnteredAndExited |
NSTrackingActiveInActiveApp |
NSTrackingInVisibleRect
owner:self
userInfo:nil];
and NSLog()s on mouseMoved:
Now put the mouse cursor on the inside of the window in the lower left corner, so that a resize cursor appears. Size the window bigger by dragging your mouse the the left and down, slowly. Stop after a few pixels. Move the cursor to the middle of the window.
Expected Results:
mouseMoved: messages continue to be sent to the view.
Actual Results:
mouseMoved messages stop being sent after resizing the window from its lower left corner.
Regression:
This broke when all-window-corner resizing was introduced in 10.7 as far as I can tell.
Notes:
This breaks mouseMoved events in chrome.
25-Feb-2013 02:44 PM Nico Weber:
An error occurred during file upload.Please try uploading the file(s) again.If the problem persists, please email your file(s) and Bug ID # to <devbugs@apple.com> and we will append the bug report with the file(s) provided.
25-Feb-2013 02:45 PM Nico Weber:
'trackingarea.zip' was successfully uploaded
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
repro app
The repro app is also attached to https://code.google.com/p/chromium/issues/detail?id=176725#c18