Revision: 15902
          http://sourceforge.net/p/skim-app/code/15902
Author:   hofman
Date:     2025-12-21 09:30:50 +0000 (Sun, 21 Dec 2025)
Log Message:
-----------
make sure we don't change the drag handle when moving a new anchored note

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

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2025-12-20 23:31:01 UTC (rev 15901)
+++ trunk/SKPDFView.m   2025-12-21 09:30:50 UTC (rev 15902)
@@ -4097,7 +4097,7 @@
         } else if (isLine) {
             [self dragLineAnnotationStartPoint:(resizeHandle & 
SKRectEdgesMinX) != 0 by:draggedPoint originalStartPoint:originalStartPoint 
originalEndPoint:originalEndPoint shiftDown:shiftDown];
         } else {
-            if (shouldAddAnnotation) {
+            if (shouldAddAnnotation && resizeHandle != SKRectEdgesNone) {
                 SKRectEdges currentResizeHandle = (draggedPoint.x < 0.0 ? 
SKRectEdgesMinX : SKRectEdgesMaxX) | (draggedPoint.y <= 0.0 ? SKRectEdgesMinY : 
SKRectEdgesMaxY);
                 if (currentResizeHandle != resizeHandle) {
                     resizeHandle = currentResizeHandle;
@@ -5198,7 +5198,7 @@
 
 static inline PDFAreaOfInterest SKAreaOfInterestForResizeHandle(SKRectEdges 
mask, PDFPage *page) {
     BOOL rotated = ([page rotation] % 180 != 0);
-    if (mask == 0)
+    if (mask == SKRectEdgesNone)
         return SKDragArea;
     else if (mask == SKRectEdgesMaxX || mask == SKRectEdgesMinX)
         return rotated ? SKResizeUpDownArea : SKResizeLeftRightArea;

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