• 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
(no subject)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(no subject)


  • Subject: (no subject)
  • From: "Joshua D. Orr" <email@hidden>
  • Date: Fri, 23 Aug 2002 18:17:16 -0600

I am trying to implement a hand which scrolls the view by dragging in the NSView.

in the mouseDown: NEView methods I have a dragging loop which reads the difference between the last and the new mouse location while dragging and then uses the ([self bounds]).origin and adds the difference point and the bounds origin and the uses [self scrollPoint:] with the new location.

This seems to sort of work, because it does scroll around, but it is kind of a little weird. It is almost like it accelerates the way you are dragging but when you go the other way it slows down then it finally starts going the other way, it is almost like it has momentum :). This is interesting but un desirable.

Does anyone have any suggestions?

-Joshua D. Orr-
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: (no subject)
      • From: Roarke Lynch <email@hidden>
    • Re: (no subject)
      • From: Oscar Morales Vivó <email@hidden>
  • Prev by Date: [Q] IB 2.3 (v283) and 10.2 crashes
  • Next by Date: Re: HotKeys in Cocoa
  • Previous by thread: (no subject)
  • Next by thread: Re: (no subject)
  • Index(es):
    • Date
    • Thread