Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Rauchfuss authored and Alexander Rauchfuss committed Feb 9, 2017
2 parents c99bccc + 9f4e232 commit b28a51f
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion Session/TSSTPageView.m
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,27 @@ - (void)scrollWheel:(NSEvent *)theEvent
NSPoint scrollPoint = NSMakePoint(NSMinX(visible) - ([theEvent deltaX] * 5), NSMinY(visible) + ([theEvent deltaY] * 5));
[self scrollPoint: scrollPoint];
}


float deltaX = [theEvent deltaX];
if (deltaX != 0.0)
{
[theEvent trackSwipeEventWithOptions:NSEventSwipeTrackingLockDirection
dampenAmountThresholdMin:-1.0
max:1.0
usingHandler:^(CGFloat gestureAmount, NSEventPhase phase, BOOL isComplete, BOOL *stop) {
}];
}


if (deltaX > 0.0)
{
[sessionController pageLeft: self];
}
else if (deltaX < 0.0)
{
[sessionController pageRight: self];
}

[sessionController refreshLoupePanel];
}

Expand Down

1 comment on commit b28a51f

@arauchfuss
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Going to revert this pull request. It screws up all scaling modes other than fit to window. and prevents loupe re-sizing.

Please sign in to comment.