(-autoscroll:): Document.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18214 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Alexander Malmberg 2003-11-26 22:55:39 +00:00
parent 2ff4e81dcc
commit 311e73aace
2 changed files with 14 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2003-11-26 23:54 Alexander Malmberg <alexander@malmberg.org>
* Source/NSView.m (-autoscroll:): Document.
2003-11-26 15:00 Alexander Malmberg <alexander@malmberg.org>
* Source/GSGuiPrivate.h: Fix GSGuiBundle() prototype.

View file

@ -2221,6 +2221,16 @@ in the main thread.
return newVisible;
}
/**
* Finds the nearest enclosing NSClipView and, if the location of the event
* is outside it, scrolls the NSClipView in the direction of the event. The
* amount scrolled is proportional to how far outside the NSClipView the
* event's location is.
*
* This method is suitable for calling periodically from a modal event
* tracking loop when the mouse is dragged outside the tracking view. The
* suggested period of the calls is 0.1 seconds.
*/
- (BOOL) autoscroll: (NSEvent*)theEvent
{
if (_super_view)