Revision: 16257
          http://sourceforge.net/p/skim-app/code/16257
Author:   hofman
Date:     2026-05-09 14:15:36 +0000 (Sat, 09 May 2026)
Log Message:
-----------
don't push cursor when not dragging

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

Modified: trunk/SKNoteOutlineView.m
===================================================================
--- trunk/SKNoteOutlineView.m   2026-05-09 14:10:14 UTC (rev 16256)
+++ trunk/SKNoteOutlineView.m   2026-05-09 14:15:36 UTC (rev 16257)
@@ -134,22 +134,23 @@
                 CGFloat startHeight = [self rowHeightForItem:item] ?: 
NSHeight([self rectOfRow:row]) - [self intercellSpacing].height;
                 BOOL didDrag = NO;
                 
-                [[NSCursor resizeUpDownCursor] push];
-                
                 while (YES) {
                     theEvent = [[self window] nextEventMatchingMask: 
NSEventMaskLeftMouseUp | NSEventMaskLeftMouseDragged];
                     if ([theEvent type] == NSEventTypeLeftMouseUp)
                         break;
-                    didDrag = YES;
+                    if (didDrag == NO) {
+                        [[NSCursor resizeUpDownCursor] push];
+                        didDrag = YES;
+                    }
                     CGFloat currentHeight = fmax([self rowHeight], 
round(startHeight + [self convertPoint:[theEvent locationInWindow] 
fromView:nil].y - mouseLoc.y));
                     [self setRowHeight:currentHeight forItem:item];
                     [self noteHeightOfRowChanged:row animating:NO];
                 }
                 
-                [NSCursor pop];
-                
-                if (didDrag)
+                if (didDrag) {
+                    [NSCursor pop];
                     return;
+                }
             }
         }
     }

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