Skip to content

Commit 2186e69

Browse files
author
Julián Romero
committed
Handle mouse events on mouse up.
For some reason the view didn't get mouse-down events (it maybe due to another Xcode plugin or system wide component). The mouse-up works fine.
1 parent 9028aca commit 2186e69

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

SCXcodeMinimap/SCMiniMapView.m

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,13 @@ - (NSDictionary *)layoutManager:(NSLayoutManager *)layoutManager shouldUseTempor
189189

190190
#pragma mark - Navigation
191191

192+
193+
- (void)mouseUp:(NSEvent *)theEvent
194+
{
195+
[super mouseUp:theEvent];
196+
[self handleMouseEvent:theEvent];
197+
}
198+
192199
- (void)mouseDown:(NSEvent *)theEvent
193200
{
194201
[super mouseDown:theEvent];

0 commit comments

Comments
 (0)