From: <de...@us...> - 2009-09-28 23:45:44
|
Revision: 1862 http://iterm.svn.sourceforge.net/iterm/?rev=1862&view=rev Author: delx Date: 2009-09-28 23:45:38 +0000 (Mon, 28 Sep 2009) Log Message: ----------- Lock scrolling while the user is selecting text (#2868971) Modified Paths: -------------- trunk/PTYTextView.m Modified: trunk/PTYTextView.m =================================================================== --- trunk/PTYTextView.m 2009-09-28 23:21:57 UTC (rev 1861) +++ trunk/PTYTextView.m 2009-09-28 23:45:38 UTC (rev 1862) @@ -1180,7 +1180,10 @@ break; } } - + + // Lock auto scrolling while the user is selecting text + [(PTYScroller*)([[self enclosingScrollView] verticalScroller]) setUserScroll:YES]; + if(mouseDownEvent != nil) { [mouseDownEvent release]; @@ -1330,7 +1333,12 @@ break; } } - + + // Unlock auto scrolling as the user as finished selecting text + if(([self visibleRect].origin.y + [self visibleRect].size.height) / lineHeight == [dataSource numberOfLines]) { + [(PTYScroller*)([[self enclosingScrollView] verticalScroller]) setUserScroll:NO]; + } + if(mouseDown == NO) return; mouseDown = NO; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |