Revision: 13529
http://sourceforge.net/p/skim-app/code/13529
Author: hofman
Date: 2023-07-21 21:53:39 +0000 (Fri, 21 Jul 2023)
Log Message:
-----------
delay closing overview on mousedown, apparently the selection change is not
performed immediately on mousedown
Modified Paths:
--------------
trunk/SKMainWindowController.m
trunk/SKOverviewView.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2023-07-12 16:08:11 UTC (rev 13528)
+++ trunk/SKMainWindowController.m 2023-07-21 21:53:39 UTC (rev 13529)
@@ -2693,6 +2693,7 @@
} else if (context == &SKMainWindowThumbnailSelectionObservationContext) {
NSIndexSet *indexes = [overviewView selectionIndexes];
+ NSLog(@"%@",indexes);
if ([indexes count] == 1 && mwcFlags.updatingThumbnailSelection == 0) {
NSUInteger pageIndex = [indexes firstIndex];
if ([[pdfView currentPage] pageIndex] != pageIndex)
Modified: trunk/SKOverviewView.m
===================================================================
--- trunk/SKOverviewView.m 2023-07-12 16:08:11 UTC (rev 13528)
+++ trunk/SKOverviewView.m 2023-07-21 21:53:39 UTC (rev 13529)
@@ -110,7 +110,7 @@
[super mouseDown:theEvent];
if (action)
- [self tryToPerform:action with:self];
+ DISPATCH_MAIN_AFTER_SEC(0.01, ^{ [self tryToPerform:action with:self];
});
}
- (id)newViewWithIdentifier:(NSString *)identifier {
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