summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--macosx/HBPreviewController.m17
1 files changed, 17 insertions, 0 deletions
diff --git a/macosx/HBPreviewController.m b/macosx/HBPreviewController.m
index 5d132a12e..8ea8c9bb3 100644
--- a/macosx/HBPreviewController.m
+++ b/macosx/HBPreviewController.m
@@ -1278,6 +1278,23 @@
[super keyDown:event];
}
+- (void)scrollWheel:(NSEvent *)theEvent
+{
+ if (!fEncodeState)
+ {
+ if ([theEvent deltaY] < 0)
+ {
+ [fPictureSlider setIntegerValue:fPicture < [fPictureSlider maxValue] ? fPicture + 1 : fPicture];
+ [self pictureSliderChanged:self];
+ }
+ else if ([theEvent deltaY] > 0)
+ {
+ [fPictureSlider setIntegerValue:fPicture > [fPictureSlider minValue] ? fPicture - 1 : fPicture];
+ [self pictureSliderChanged:self];
+ }
+ }
+}
+
#pragma mark *** QTTime Utilities ***
// convert a time value (long) to a QTTime structure