Revision: 6970
          http://skim-app.svn.sourceforge.net/skim-app/?rev=6970&view=rev
Author:   hofman
Date:     2010-12-13 13:16:03 +0000 (Mon, 13 Dec 2010)

Log Message:
-----------
increase minimum hit width around lines, so it's easier to select lines in 
freehand note tool mode

Modified Paths:
--------------
    trunk/PDFAnnotationInk_SKExtensions.m
    trunk/PDFAnnotationLine_SKExtensions.m

Modified: trunk/PDFAnnotationInk_SKExtensions.m
===================================================================
--- trunk/PDFAnnotationInk_SKExtensions.m       2010-12-13 13:12:46 UTC (rev 
6969)
+++ trunk/PDFAnnotationInk_SKExtensions.m       2010-12-13 13:16:03 UTC (rev 
6970)
@@ -112,7 +112,7 @@
 
 - (BOOL)hitTest:(NSPoint)point {
     NSPoint relPoint = SKSubstractPoints(point, [self bounds].origin);
-    CGFloat delta = fmax(2.0, 0.5 * [self lineWidth]);
+    CGFloat delta = fmax(4.0, 0.5 * [self lineWidth]);
     
     if ([super hitTest:point]) {
         NSPoint prevPoint, nextPoint = NSZeroPoint;

Modified: trunk/PDFAnnotationLine_SKExtensions.m
===================================================================
--- trunk/PDFAnnotationLine_SKExtensions.m      2010-12-13 13:12:46 UTC (rev 
6969)
+++ trunk/PDFAnnotationLine_SKExtensions.m      2010-12-13 13:16:03 UTC (rev 
6970)
@@ -128,7 +128,7 @@
 - (BOOL)isConvertibleAnnotation { return YES; }
 
 - (BOOL)hitTest:(NSPoint)point {
-    CGFloat delta = fmax(2.0, 0.5 * [self lineWidth]);
+    CGFloat delta = fmax(4.0, 0.5 * [self lineWidth]);
     return SKPointNearLineFromPointToPoint(SKSubstractPoints(point, [self 
bounds].origin), [self startPoint], [self endPoint], 4.0, delta);
 }
 


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

------------------------------------------------------------------------------
Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL,
new data types, scalar functions, improved concurrency, built-in packages, 
OCI, SQL*Plus, data movement tools, best practices and more.
http://p.sf.net/sfu/oracle-sfdev2dev 
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to