Revision: 15579
http://sourceforge.net/p/skim-app/code/15579
Author: hofman
Date: 2025-07-01 17:35:17 +0000 (Tue, 01 Jul 2025)
Log Message:
-----------
only may be adding new undo group at begin of a drag and not adding a new note
Modified Paths:
--------------
trunk/SKPDFView.m
Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m 2025-07-01 09:04:23 UTC (rev 15578)
+++ trunk/SKPDFView.m 2025-07-01 17:35:17 UTC (rev 15579)
@@ -4069,13 +4069,15 @@
} else if ([theEvent type] == NSEventTypeLeftMouseDragged) {
if (currentAnnotation == nil) {
[self addAnnotationWithType:noteType selection:nil page:page
bounds:SKRectFromCenterAndSquareSize(originalBounds.origin, 0.0)];
+ draggedAnnotation = YES;
+ } else if (draggedAnnotation == NO) {
+ [self beginNewUndoGroupIfNeeded];
+ draggedAnnotation = YES;
}
lastMouseEvent = theEvent;
- draggedAnnotation = YES;
} else if (currentAnnotation == nil) {
continue;
}
- [self beginNewUndoGroupIfNeeded];
if (resizeHandle == 0)
[self doMoveAnnotationWithEvent:lastMouseEvent offset:offset];
else if (isLine)
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