Revision: 14833
          http://sourceforge.net/p/skim-app/code/14833
Author:   hofman
Date:     2024-12-15 15:28:08 +0000 (Sun, 15 Dec 2024)
Log Message:
-----------
Don't copy note with Option key down when not dragging, as it won't be clear 
that the note at the same location was copied

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

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2024-12-14 15:17:10 UTC (rev 14832)
+++ trunk/SKPDFView.m   2024-12-15 15:28:08 UTC (rev 14833)
@@ -4099,7 +4099,8 @@
         BOOL isInk = toolMode == SKToolModeNote && annotationMode == 
SKNoteTypeInk;
         NSUInteger modifiers = [theEvent modifierFlags];
         if ((modifiers & NSEventModifierFlagOption) && [newCurrentAnnotation 
isMovable] &&
-            [newCurrentAnnotation resizeHandleForPoint:point scaleFactor:[self 
scaleFactor]] == 0) {
+            [newCurrentAnnotation resizeHandleForPoint:point scaleFactor:[self 
scaleFactor]] == 0 &&
+            [NSApp willDragMouse]) {
             // select a new copy of the annotation
             PDFAnnotation *newAnnotation = [PDFAnnotation 
newSkimNoteWithProperties:[newCurrentAnnotation SkimNoteProperties]];
             [newAnnotation registerUserName];

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



_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to