mirror of
https://github.com/textmate/textmate.git
synced 2026-01-22 21:27:56 -05:00
Change a few instances of floorf/fabsf → floor/fabs
This commit is contained in:
@@ -102,7 +102,7 @@
|
||||
|
||||
- (void)scrollWheel:(NSEvent*)anEvent
|
||||
{
|
||||
if(![NSEvent isSwipeTrackingFromScrollEventsEnabled] || [anEvent phase] == NSEventPhaseNone || fabsf([anEvent scrollingDeltaX]) <= fabsf([anEvent scrollingDeltaY]))
|
||||
if(![NSEvent isSwipeTrackingFromScrollEventsEnabled] || [anEvent phase] == NSEventPhaseNone || fabs([anEvent scrollingDeltaX]) <= fabs([anEvent scrollingDeltaY]))
|
||||
return;
|
||||
|
||||
[anEvent trackSwipeEventWithOptions:0 dampenAmountThresholdMin:(_webView.canGoForward ? -1 : 0) max:(_webView.canGoBack ? +1 : 0) usingHandler:^(CGFloat gestureAmount, NSEventPhase phase, BOOL isComplete, BOOL* stop) {
|
||||
|
||||
Reference in New Issue
Block a user