making double click handling more robust

This commit is contained in:
OnFlApp 2022-09-17 16:43:45 +02:00
parent 187f58beea
commit c8c45021da

View file

@ -110,7 +110,7 @@
if (type == NSLeftMouseUp)
{
if ([theEvent clickCount] == 2)
if ([theEvent clickCount] >= 2)
{
if (delegate != nil && [delegate respondsToSelector:
@selector(textView:doubleClickedOnCell:inRect:)])
@ -167,7 +167,7 @@
if (type == NSLeftMouseDown)
{
if ([theEvent clickCount] == 2)
if ([theEvent clickCount] >= 2)
{
if (delegate != nil)
{