On Jun 26, 2015, at 2:47 AM, Martin Wierschin <mar...@nisus.com> wrote:

> The quick overview: sometimes after working in my OSX app, scroll wheel 
> events are no longer being dispatched to the key window's first responder. In 
> fact, after overriding -[NSApplication sendEvent:] I can see that after the 
> misbehavior is triggered, scroll events do not even arrive for my NSApp to 
> process.
> 
> I can't reproduce the problem myself, but through debug builds and logging 
> I've verified that the first responder is correct: a custom NSView subclass 
> contained in an NSScrollView.

I don't know why your app stops receiving scroll events, but I have to correct 
a misunderstanding: the first responder has nothing to do with scroll events.  
Scroll events are delivered to the view under the mouse cursor.  (Scroll 
momentum events are delivered to the view that originally received the "real" 
scroll events, even if the mouse or the view has moved.)

As to the problem of not receiving scroll events, I would check for third-party 
code injection software or something running an event tap.

Regards,
Ken


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to