Revision: 14423
          http://sourceforge.net/p/skim-app/code/14423
Author:   hofman
Date:     2024-08-15 21:31:03 +0000 (Thu, 15 Aug 2024)
Log Message:
-----------
Dragging will not lead to double or triple click to select

Modified Paths:
--------------
    trunk/SKPDFView.m

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2024-08-15 21:19:13 UTC (rev 14422)
+++ trunk/SKPDFView.m   2024-08-15 21:31:03 UTC (rev 14423)
@@ -1945,12 +1945,13 @@
             [self doDragAnnotationWithEvent:theEvent];
         } else {
             [self setCurrentAnnotation:nil];
+            BOOL mayMultiClick = [theEvent clickCount] < 3 && [NSApp 
willDragMouse] == NO;
             [super mouseDown:theEvent];
             if ([[self currentSelection] hasCharacters]) {
                 [self 
addAnnotationWithType:NOTE_TYPE_FROM_TEMP_TOOL_MODE(temporaryToolMode)];
                 [self setCurrentSelection:nil];
-            } else {
-                delayTempToolMode = [theEvent clickCount] < 3;
+            } else if (mayMultiClick) {
+                delayTempToolMode = YES;
             }
         }
         if (delayTempToolMode)

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to