symbolic constant

This commit is contained in:
daboe01 committed 2014-02-22 20:33:17 +01:00
1 parent 40da5a849d
commit b439e0cfa0
1 file changed
+3 -1
+3 -1
View File
@@ -202,6 +202,8 @@ var ModifierKeyCodes = [
var resizeTimer = nil;
#define FIREFOX_SCROLLWHEEL_FACTOR 6
#if PLATFORM(DOM)
@implementation CPPlatformWindow (DOM)
@@ -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