Change a few instances of floorf/fabsf → floor/fabs

This commit is contained in:
Allan Odgaard
2014-03-28 11:07:01 +07:00
parent 6d6210e490
commit 619a2cfec7
7 changed files with 7 additions and 7 deletions

View File

@@ -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) {