• 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: Slow down a scroller?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Slow down a scroller?


  • Subject: Re: Slow down a scroller?
  • From: Steve Mills <email@hidden>
  • Date: Wed, 11 Sep 2013 12:49:49 -0500

On Sep 11, 2013, at 12:16:54, Kyle Sluder <email@hidden>
 wrote:

> Does calling -[NSScrolView set{Vertical,Horizontal}LineScroll:] not affect the scroll wheel behavior?

Correct. It only affects the arrows that are no longer there. :)

> If not, what about implementing -scrollWheel: in your document view?

Hmm, that's an idea. I've just added it and am getting results I didn't expect. Here's the first event. Notice that deltaX is 0, but deviceDeltaX is -1, and that's not a public member:

NSEvent: type=ScrollWheel loc=(421,512) time=183606.9 flags=0x100 win=0x263ceca0 winNum=18393 ctxt=0x224bb deltaX=0.000000 deltaY=0.000000 deltaZ=0.000000 deviceDeltaX=-1.000000 deviceDeltaY=0.000000 deviceDeltaZ=0.000000 count:0 phase=Began momentumPhase=None

When I stop scrolling I get this event:

NSEvent: type=ScrollWheel loc=(517,443) time=183608.2 flags=0x100 win=0x263ceca0 winNum=18393 ctxt=0x224bb deltaX=0.000000 deltaY=0.000000 deltaZ=0.000000 deviceDeltaX=0.000000 deviceDeltaY=0.000000 deviceDeltaZ=0.000000 count:0 phase=Ended momentumPhase=None

Note the phase=Begin and phase=End. So it's doing something special for views contained in scroll views? We don't actually get anything usable until it calls out scroller action, and the only thing we can do by that point is to inspect the scroller's new value.

> Furthermore, your document view is the same size as your scroll view? Is this intentional? Because that's not how the scrolling architecture is designed to work.


Yes, it's very intentional. Like I said, this is a different mode - only part of the document view changes as the user scrolls horizontally. The left edge remains static - it's where the staff names are listed.

--
Steve Mills
office: 952-818-3871
home: 952-401-6255
cell: 612-803-6157




_______________________________________________

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: Slow down a scroller?
      • From: Steve Mills <email@hidden>
    • Re: Slow down a scroller?
      • From: Steve Mills <email@hidden>
References: 
 >Re: Slow down a scroller? (From: Steve Mills <email@hidden>)
 >Re: Slow down a scroller? (From: Alex Zavatone <email@hidden>)
 >Re: Slow down a scroller? (From: Steve Mills <email@hidden>)
 >Re: Slow down a scroller? (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Slow down a scroller?
  • Next by Date: Re: Slow down a scroller?
  • Previous by thread: Re: Slow down a scroller?
  • Next by thread: Re: Slow down a scroller?
  • Index(es):
    • Date
    • Thread