Simplified scrolling a rectangle inside visible rect

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6684 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
nico 2000-06-15 18:32:13 +00:00
parent 7050d47590
commit 381fbce7d0

View file

@ -1853,14 +1853,9 @@ GSSetDragTypes(NSView* obj, NSArray *types)
if (shouldScroll)
{
id cSuper = [s superview];
aPoint = [self convertPoint: aPoint toView: s];
aPoint = [s constrainScrollPoint: aPoint];
[s scrollToPoint: aPoint];
if ([cSuper respondsToSelector:@selector(reflectScrolledClipView:)])
[(NSScrollView *)cSuper reflectScrolledClipView: s];
return YES;
}
}