Revision: 15580
          http://sourceforge.net/p/skim-app/code/15580
Author:   hofman
Date:     2025-07-01 17:36:56 +0000 (Tue, 01 Jul 2025)
Log Message:
-----------
don't check for annotation when already dragged

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

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2025-07-01 17:35:17 UTC (rev 15579)
+++ trunk/SKPDFView.m   2025-07-01 17:36:56 UTC (rev 15580)
@@ -4067,12 +4067,12 @@
         if ([theEvent type] == NSEventTypeLeftMouseUp) {
             break;
         } else if ([theEvent type] == NSEventTypeLeftMouseDragged) {
-            if (currentAnnotation == nil) {
-                [self addAnnotationWithType:noteType selection:nil page:page 
bounds:SKRectFromCenterAndSquareSize(originalBounds.origin, 0.0)];
+            if (draggedAnnotation == NO) {
+                if (currentAnnotation == nil)
+                    [self addAnnotationWithType:noteType selection:nil 
page:page bounds:SKRectFromCenterAndSquareSize(originalBounds.origin, 0.0)];
+                else
+                    [self beginNewUndoGroupIfNeeded];
                 draggedAnnotation = YES;
-            } else if (draggedAnnotation == NO) {
-                [self beginNewUndoGroupIfNeeded];
-                draggedAnnotation = YES;
             }
             lastMouseEvent = theEvent;
         } else if (currentAnnotation == nil) {

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