-
Notifications
You must be signed in to change notification settings - Fork 337
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
mouseDown mouseUp clickCount threshold #1664
Comments
Milestone: Someday. Label: #new. What's next? A reviewer should examine this issue. |
This is probably the same issue as #1666. The +bug |
Milestone: Someday. Labels: #needs-confirmation, #new, AppKit, bug. What's next? This issue needs a volunteer to independently reproduce the issue. |
The fix for issue #1666 although it has made it work better it has not completely fixed this issue. The documents clearly state that when the user holds down the mouse for an extended period of time and then releases it, the clickCount should return 0. With the new fix it returns it still returns 1 and not 0 on mouseUp. |
I find that a little strange since there has been exactly 1 |
#accepted |
Milestone: Someday. Labels: #accepted, AppKit, bug. What's next? A reviewer should examine this issue. |
I am not seeing the behavior you described in the latest master. What you did uncover is that CPView -mouseDown is being called twice for each click, which is wrong. #fixed |
Milestone: Someday. Labels: #fixed, AppKit, bug. What's next? This issue is considered successfully resolved. |
https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/nsevent_Class/Reference/Reference.html#//apple_ref/doc/uid/20000016-BBCCAJIG
In cocoa, if the mouse is held down (without moving it) for an extended period of time and then released, the clickCount is reset to 0 and the clickCount of the next mouseDown is 1.
In cappuccino, no matter how long you hold the mouse down, the clickCount is always incremented.
Moving the mouse resets the clickCount to zero.
It can been seen in the following example:
The text was updated successfully, but these errors were encountered: