Skip to content

Commit 6f43144

Browse files
committed
Set mouseDown flag before reporting mouse down; otherwise we return and mouseUp doesn't think there was a mouseDown.
1 parent faac29a commit 6f43144

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

PTYTextView.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2919,6 +2919,8 @@ - (BOOL)mouseDownImpl:(NSEvent*)event
29192919
}
29202920
}
29212921

2922+
mouseDown = YES;
2923+
29222924
if ([self reportMouseEvent:event]) {
29232925
return NO;
29242926
}
@@ -2932,7 +2934,6 @@ - (BOOL)mouseDownImpl:(NSEvent*)event
29322934
[mouseDownEvent autorelease];
29332935
mouseDownEvent = [event retain];
29342936
mouseDragged = NO;
2935-
mouseDown = YES;
29362937
mouseDownOnSelection = NO;
29372938
mouseDownOnImage = NO;
29382939

0 commit comments

Comments
 (0)