Revision: 7807
          http://skim-app.svn.sourceforge.net/skim-app/?rev=7807&view=rev
Author:   hofman
Date:     2012-11-29 18:00:31 +0000 (Thu, 29 Nov 2012)
Log Message:
-----------
disable mouse coalescing when drawing freehand note

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

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2012-11-23 22:44:30 UTC (rev 7806)
+++ trunk/SKPDFView.m   2012-11-29 18:00:31 UTC (rev 7807)
@@ -3318,6 +3318,7 @@
     NSPoint mouseDownLoc = [theEvent locationInView:self];
     PDFPage *page = [self pageForPoint:mouseDownLoc nearest:YES];
     BOOL didDraw = NO;
+    BOOL wasMouseCoalescingEnabled = [NSEvent isMouseCoalescingEnabled];
     
     bezierPath = [[NSBezierPath alloc] init];
     [bezierPath moveToPoint:[self convertPoint:mouseDownLoc toPage:page]];
@@ -3342,6 +3343,8 @@
     }
     pathPageIndex = [page pageIndex];
     
+    [NSEvent setMouseCoalescingEnabled:NO];
+    
     while (YES) {
         theEvent = [[self window] nextEventMatchingMask: NSLeftMouseUpMask | 
NSLeftMouseDraggedMask];
         if ([theEvent type] == NSLeftMouseUp)
@@ -3351,6 +3354,8 @@
         didDraw = YES;
     }
     
+    [NSEvent setMouseCoalescingEnabled:wasMouseCoalescingEnabled];
+    
     if (didDraw) {
         NSMutableArray *paths = [[NSMutableArray alloc] init];
         if (activeAnnotation)

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Keep yourself connected to Go Parallel: 
VERIFY Test and improve your parallel project with help from experts 
and peers. http://goparallel.sourceforge.net
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to