Revision: 15202
http://sourceforge.net/p/skim-app/code/15202
Author: hofman
Date: 2025-05-12 21:22:51 +0000 (Mon, 12 May 2025)
Log Message:
-----------
Combine redraw for note changes in the same run. Remove layer for drawing
freehand note wwhen displaying the page with the note.
Modified Paths:
--------------
trunk/SKPresentationView.m
Modified: trunk/SKPresentationView.m
===================================================================
--- trunk/SKPresentationView.m 2025-05-12 16:16:57 UTC (rev 15201)
+++ trunk/SKPresentationView.m 2025-05-12 21:22:51 UTC (rev 15202)
@@ -376,8 +376,10 @@
}
- (void)updatedAnnotationOnPage:(PDFPage *)aPage {
- if (page == aPage)
- [self displayPage:nil];
+ if (page == aPage) {
+ [[self class] cancelPreviousPerformRequestsWithTarget:self
selector:@selector(displayPage:) object:nil];
+ [self performSelector:@selector(displayPage:) withObject:nil
afterDelay:0.0];
+ }
}
#pragma mark Accessors
@@ -791,8 +793,6 @@
}
}
- [layer removeFromSuperlayer];
-
[NSEvent setMouseCoalescingEnabled:wasMouseCoalescingEnabled];
if (bezierPath) {
@@ -803,6 +803,13 @@
if (tmpColor)
[annotation setColor:tmpColor];
[[page document] addAnnotation:annotation toPage:page];
+
+ [[self class] cancelPreviousPerformRequestsWithTarget:self
selector:@selector(displayPage:) object:nil];
+ [self displayPage:^{
+ [layer removeFromSuperlayer];
+ }];
+ } else {
+ [layer removeFromSuperlayer];
}
}
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