Revision: 12972
          http://sourceforge.net/p/skim-app/code/12972
Author:   hofman
Date:     2022-06-28 16:41:21 +0000 (Tue, 28 Jun 2022)
Log Message:
-----------
let pacer directly call reading bar

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

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2022-06-28 16:30:16 UTC (rev 12971)
+++ trunk/SKPDFView.m   2022-06-28 16:41:21 UTC (rev 12972)
@@ -1076,7 +1076,7 @@
 
 - (void)pacerTimerFired:(NSTimer *)timer {
     if ([self hasReadingBar]) {
-        [self doMoveReadingBarForKey:0];
+        [readingBar goToNextLine];
     } else {
         NSClipView *clipView = [[self scrollView] contentView];
         NSRect startBounds = [clipView bounds];
@@ -3741,10 +3741,9 @@
     }
 }
 
-// @@ Horizontal layout
 - (void)doMoveReadingBarForKey:(unichar)eventChar {
     BOOL moved = NO;
-    if (eventChar == NSDownArrowFunctionKey || eventChar == 0)
+    if (eventChar == NSDownArrowFunctionKey)
         moved = [readingBar goToNextLine];
     else if (eventChar == NSUpArrowFunctionKey)
         moved = [readingBar goToPreviousLine];
@@ -3752,7 +3751,7 @@
         moved = [readingBar goToNextPage];
     else if (eventChar == NSLeftArrowFunctionKey)
         moved = [readingBar goToPreviousPage];
-    if (moved && eventChar != 0)
+    if (moved)
         [self updatePacer];
 }
 

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



_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to