Revision: 4948
http://skim-app.svn.sourceforge.net/skim-app/?rev=4948&view=rev
Author: hofman
Date: 2008-11-12 11:27:46 +0000 (Wed, 12 Nov 2008)
Log Message:
-----------
larger margins around selectable text
Modified Paths:
--------------
trunk/SKPDFView.m
Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m 2008-11-12 00:19:05 UTC (rev 4947)
+++ trunk/SKPDFView.m 2008-11-12 11:27:46 UTC (rev 4948)
@@ -1103,7 +1103,7 @@
case SKNoteToolMode:
if ([self doSelectAnnotationWithEvent:theEvent] == NO &&
(toolMode == SKTextToolMode || hideNotes ||
annotationMode == SKHighlightNote || annotationMode == SKUnderlineNote ||
annotationMode == SKStrikeOutNote)) {
- if (area == kPDFPageArea && [[page
selectionForRect:NSMakeRect(p.x - 30.0, p.y - 40.0, 60.0, 80.0)] string] ==
nil) {
+ if (area == kPDFPageArea && [[page
selectionForRect:NSMakeRect(p.x - 40.0, p.y - 50.0, 80.0, 100.0)] string] ==
nil) {
[self doDragWithEvent:theEvent];
} else if (nil == activeAnnotation &&
mouseDownInAnnotation) {
[self doSelectTextWithEvent:theEvent];
@@ -4043,7 +4043,7 @@
BOOL canSelectOrDrag = area == kPDFNoArea || toolMode ==
SKTextToolMode || hideNotes || annotationMode == SKHighlightNote ||
annotationMode == SKUnderlineNote || annotationMode == SKStrikeOutNote;
if (readingBar && [[readingBar page] isEqual:page] &&
NSPointInRect(p, [readingBar currentBoundsForBox:[self displayBox]]))
cursor = p.y < NSMinY([readingBar currentBounds]) + 3.0 ?
[NSCursor resizeUpDownCursor] : [NSCursor openHandCursor];
- else if (area == kPDFNoArea || (canSelectOrDrag && area ==
kPDFPageArea && [[page selectionForRect:NSMakeRect(p.x - 30.0, p.y - 40.0,
60.0, 80.0)] string] == nil))
+ else if (area == kPDFNoArea || (canSelectOrDrag && area ==
kPDFPageArea && [[page selectionForRect:NSMakeRect(p.x - 40.0, p.y - 50.0,
80.0, 100.0)] string] == nil))
cursor = [NSCursor openHandCursor];
else if (toolMode == SKNoteToolMode && annotationMode !=
SKHighlightNote && annotationMode != SKUnderlineNote && annotationMode !=
SKStrikeOutNote)
cursor = [NSCursor arrowCursor];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit