mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 01:50:38 +00:00
Scroll NSTextView during dragging if the mouse pointer is close to the
border of the view's visible rectangle. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27313 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
50a4201f22
commit
37cb9d46b0
3 changed files with 65 additions and 0 deletions
|
@ -834,6 +834,22 @@ static GSDragView *sharedDragView = nil;
|
|||
{
|
||||
[self _updateAndMoveImageToCorrectPosition];
|
||||
}
|
||||
else if (destWindow)
|
||||
{
|
||||
[self _sendLocalEvent: GSAppKitDraggingUpdate
|
||||
action: dragMask & operationMask
|
||||
position: newPosition
|
||||
timestamp: [theEvent timestamp]
|
||||
toWindow: destWindow];
|
||||
}
|
||||
else
|
||||
{
|
||||
[self sendExternalEvent: GSAppKitDraggingUpdate
|
||||
action: dragMask & operationMask
|
||||
position: newPosition
|
||||
timestamp: [theEvent timestamp]
|
||||
toWindow: targetWindowRef];
|
||||
}
|
||||
break;
|
||||
default:
|
||||
NSLog(@"Internal: dropped event (%d) during dragging", [theEvent type]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue