custom gesture recognizer makes click gesture recognizer sometimes miss clicks
| Originator: | mayoff | ||
| Number: | rdar://32684653 | Date Originated: | 09-Jun-2017 03:36 PM |
| Status: | Open | Resolved: | |
| Product: | macOS + SDK | Product Version: | Version 9.0 beta (9M136h) / 10.13 Beta (17A264c) |
| Classification: | UI/Usability | Reproducible: | Always |
Summary: Attached project has two gesture recognizers on its content view: - An NSClickGestureRecognizer that increments the count visible at the bottom of the window. - A CustomGestureRecognizer that does nothing, but begins on mouseDown and ends on mouseUp. The content view also has a context menu. Steps to Reproduce: 1. Run the attached project. 2. Click in the app window a few times to see that the click gesture recognizer fires, incrementing the counter. 3. Right-click to summon the content menu. 4. Click any menu item. 5. Click in the content view. 6. The click gesture recognizer does NOT fire on the first click in the content view after the menu is dismissed. Uncomment -[CustomGestureRecognizer rightMouseDown:] to fix the problem. Expected Results: Click gesture recognizer fires on the first click after the menu is dismissed. Actual Results: Click gesture recognizer does not fire on the first click after the menu is dismissed. Version: Version 9.0 beta (9M136h) / 10.13 Beta (17A264c) Notes: Since CustomGestureRecognizer doesn’t care about right mouse activity (or any activity except the left mouse button), it is confusing that it needs to explicitly respond to rightMouseDown:. It would be better if it didn’t need to.
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!