mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
[macOS] Add TODOs to remove AppKit bug workaround (flutter/engine#54764)
In https://github.com/flutter/engine/pull/40241, I added a workaround for an AppKit bug wherein mouseDown/Up events were ignored when the *Reduced Transparency* accessibility setting was enabled, and the view was hosted in an `NSPopover`. I filed a Radar and Apple reported the bug fixed in macOS 13.3.1. When we drop support for macOS 12 in Flutter, we should remove the workaround. So long as nothing else has been added to these methods at that time, the method overrides themselves should be removed, so that we fall back to the default behaviour. See: http://www.openradar.me/FB12050037 See: https://developer.apple.com/documentation/appkit/nsresponder/1535349-mouseup Issue: https://github.com/flutter/flutter/issues/154063 Issue: https://github.com/flutter/flutter/issues/115015 No tests modified since this only adds a comment. [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
This commit is contained in:
parent
b5e7036a72
commit
b105e9b1cd
@ -297,6 +297,9 @@ static void OnKeyboardLayoutChanged(CFNotificationCenterRef center,
|
||||
// See: https://github.com/flutter/flutter/issues/115015
|
||||
// See: http://www.openradar.me/FB12050037
|
||||
// See: https://developer.apple.com/documentation/appkit/nsresponder/1524634-mousedown
|
||||
//
|
||||
// TODO(cbracken): https://github.com/flutter/flutter/issues/154063
|
||||
// Remove this workaround when we drop support for macOS 12 (Monterey).
|
||||
[self.nextResponder mouseDown:event];
|
||||
}
|
||||
|
||||
@ -311,6 +314,9 @@ static void OnKeyboardLayoutChanged(CFNotificationCenterRef center,
|
||||
// See: https://github.com/flutter/flutter/issues/115015
|
||||
// See: http://www.openradar.me/FB12050037
|
||||
// See: https://developer.apple.com/documentation/appkit/nsresponder/1535349-mouseup
|
||||
//
|
||||
// TODO(cbracken): https://github.com/flutter/flutter/issues/154063
|
||||
// Remove this workaround when we drop support for macOS 12 (Monterey).
|
||||
[self.nextResponder mouseUp:event];
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user