Skip to content

Commit

Permalink
symbolic constant
Browse files Browse the repository at this point in the history
  • Loading branch information
daboe01 committed Feb 22, 2014
1 parent 40da5a8 commit b439e0c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion AppKit/Platform/DOM/CPPlatformWindow+DOM.j
Expand Up @@ -202,6 +202,8 @@ var ModifierKeyCodes = [

var resizeTimer = nil;

#define FIREFOX_SCROLLWHEEL_FACTOR 6

#if PLATFORM(DOM)

@implementation CPPlatformWindow (DOM)
Expand Down Expand Up @@ -913,7 +915,7 @@ var resizeTimer = nil;
{
// Find the scroll delta
var deltaX = _DOMScrollingElement.scrollLeft - 150,
deltaY = (_DOMScrollingElement.scrollTop - 150) || (aDOMEvent.deltaY === undefined ? 0 : (aDOMEvent.deltaY * 6));
deltaY = (_DOMScrollingElement.scrollTop - 150) || (aDOMEvent.deltaY === undefined ? 0 : (aDOMEvent.deltaY * FIREFOX_SCROLLWHEEL_FACTOR));

// If we scroll super with momentum,
// there are so many events going off that
Expand Down

0 comments on commit b439e0c

Please sign in to comment.