Revision: 2575
http://skim-app.svn.sourceforge.net/skim-app/?rev=2575&view=rev
Author: hofman
Date: 2007-07-27 10:40:52 -0700 (Fri, 27 Jul 2007)
Log Message:
-----------
Ignore mouse drag events in presentation mode. Remove selection when entering
presentation mode.
Modified Paths:
--------------
trunk/SKMainWindowController.m
trunk/SKPDFView.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2007-07-27 16:46:32 UTC (rev 2574)
+++ trunk/SKMainWindowController.m 2007-07-27 17:40:52 UTC (rev 2575)
@@ -2117,6 +2117,7 @@
[scrollView setNeverHasVerticalScroller:YES];
[scrollView setAutohidesScrollers:YES];
+ [pdfView setCurrentSelection:nil];
if ([pdfView hasReadingBar])
[pdfView toggleReadingBar];
Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m 2007-07-27 16:46:32 UTC (rev 2574)
+++ trunk/SKPDFView.m 2007-07-27 17:40:52 UTC (rev 2575)
@@ -898,10 +898,16 @@
unsigned int modifiers = [theEvent modifierFlags] &
NSDeviceIndependentModifierFlagsMask;
if (hasNavigation && autohidesCursor) {
- if ([self areaOfInterestForMouse:theEvent] & kPDFLinkArea)
+ if ([self areaOfInterestForMouse:theEvent] & kPDFLinkArea) {
[super mouseDown:theEvent];
- else
+ } else {
[self goToNextPage:self];
+ // Eat up drag events because we don't want to select
+ while (YES) {
+ if ([[[self window] nextEventMatchingMask: NSLeftMouseUpMask |
NSLeftMouseDraggedMask] type] == NSLeftMouseUp)
+ break;
+ }
+ }
return;
}
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: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit