diff --git a/Source/NSTextAttachment.m b/Source/NSTextAttachment.m index 5ab5b0220c..6ebbde2cbd 100644 --- a/Source/NSTextAttachment.m +++ b/Source/NSTextAttachment.m @@ -110,7 +110,7 @@ - (BOOL)trackMouse: (NSEvent *)theEvent if (type == NSLeftMouseUp) { - if ([theEvent clickCount] == 2) + if ([theEvent clickCount] >= 2) { if (delegate != nil && [delegate respondsToSelector: @selector(textView:doubleClickedOnCell:inRect:)]) @@ -167,7 +167,7 @@ - (BOOL)trackMouse: (NSEvent *)theEvent if (type == NSLeftMouseDown) { - if ([theEvent clickCount] == 2) + if ([theEvent clickCount] >= 2) { if (delegate != nil) {