|
From: <ho...@us...> - 2025-07-28 15:38:11
|
Revision: 15667
http://sourceforge.net/p/skim-app/code/15667
Author: hofman
Date: 2025-07-28 15:38:10 +0000 (Mon, 28 Jul 2025)
Log Message:
-----------
support back / forward mouse buttons
Modified Paths:
--------------
trunk/SKPDFView.m
Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m 2025-07-17 08:53:45 UTC (rev 15666)
+++ trunk/SKPDFView.m 2025-07-28 15:38:10 UTC (rev 15667)
@@ -1866,6 +1866,15 @@
}
}
+- (void)otherMouseDown:(NSEvent *)theEvent {
+ [super otherMouseDown:theEvent];
+ NSInteger button = [theEvent buttonNumber];
+ if (button == 3 && [self canGoBack])
+ [self goBack:nil];
+ else if (button == 4 && [self canGoForward])
+ [self goForward:nil];
+}
+
- (void)flagsChanged:(NSEvent *)theEvent {
[super flagsChanged:theEvent];
[self setCursorForMouse:nil];
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|