mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-22 06:25:52 +00:00
symbolic constant
This commit is contained in:
1 parent
40da5a849d
commit
b439e0cfa0
1 file changed
+3
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user