AP.
AP.

Reputation: 5323

NSButton raising click event on mouseup

I am looking for an NSButton raising the click event on mouseup, even if the mouse down has been made outside the button. Do you have any idea to get this behavior?

Thanks!

Upvotes: 0

Views: 914

Answers (1)

wadesworld
wadesworld

Reputation: 13763

Moving the mouse outside a control before releasing the button allows the user to cancel the action.

I would think the only way to do that would be to intercept all events and handle all click tracking and movement tracking yourself.

However, it would result in a very unexpected interface behavior, so you should consider carefully why you need to do that.

Upvotes: 2

Related Questions