mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-08 03:10:39 +00:00
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:
parent
7050d47590
commit
381fbce7d0
1 changed files with 0 additions and 5 deletions
|
@ -1853,14 +1853,9 @@ GSSetDragTypes(NSView* obj, NSArray *types)
|
||||||
|
|
||||||
if (shouldScroll)
|
if (shouldScroll)
|
||||||
{
|
{
|
||||||
id cSuper = [s superview];
|
|
||||||
|
|
||||||
aPoint = [self convertPoint: aPoint toView: s];
|
aPoint = [self convertPoint: aPoint toView: s];
|
||||||
aPoint = [s constrainScrollPoint: aPoint];
|
aPoint = [s constrainScrollPoint: aPoint];
|
||||||
[s scrollToPoint: aPoint];
|
[s scrollToPoint: aPoint];
|
||||||
if ([cSuper respondsToSelector:@selector(reflectScrolledClipView:)])
|
|
||||||
[(NSScrollView *)cSuper reflectScrolledClipView: s];
|
|
||||||
|
|
||||||
return YES;
|
return YES;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue