(no subject)
(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.