mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-28 17:32:03 +00:00
Merge pull request #2013 from daboe01/fix-scrollwheel-speed-on-firefox
Fixed: scroll wheel speed is way to low in firefox [+1]
This commit is contained in:
commit
81f9748313
1 file changed
+3
-1
@@ -203,6 +203,8 @@ var ModifierKeyCodes = [
|
||||
var resizeTimer = nil;
|
||||
var PreventScroll = true;
|
||||
|
||||
#define FIREFOX_SCROLLWHEEL_FACTOR 6
|
||||
|
||||
#if PLATFORM(DOM)
|
||||
|
||||
@implementation CPPlatformWindow (DOM)
|
||||
@@ -919,7 +921,7 @@ var PreventScroll = true;
|
||||
{
|
||||
// Find the scroll delta
|
||||
var deltaX = _DOMScrollingElement.scrollLeft - 150,
|
||||
deltaY = (_DOMScrollingElement.scrollTop - 150) || (aDOMEvent.deltaY === undefined ? 0 : aDOMEvent.deltaY);
|
||||
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