• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Why would scroll events not arrive?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why would scroll events not arrive?


  • Subject: Re: Why would scroll events not arrive?
  • From: Ken Thomases <email@hidden>
  • Date: Fri, 26 Jun 2015 03:36:30 -0500

On Jun 26, 2015, at 2:47 AM, Martin Wierschin <email@hidden> 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 (email@hidden)

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:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Why would scroll events not arrive?
      • From: Martin Wierschin <email@hidden>
References: 
 >Why would scroll events not arrive? (From: Martin Wierschin <email@hidden>)

  • Prev by Date: Why would scroll events not arrive?
  • Next by Date: Re: Why would scroll events not arrive?
  • Previous by thread: Why would scroll events not arrive?
  • Next by thread: Re: Why would scroll events not arrive?
  • Index(es):
    • Date
    • Thread