+2005-04-05 David Hyatt <hyatt@apple.com>
+
+ Fix for 4077106, wheel scroll amount smaller in Tiger. All along wheeling should have been 4x the default
+ line height of 10 (just as arrow keys did). Scroll arrows should have done this too for scroll views (they did
+ already for overflow sections). This patch puts the override into the scrollview itself, and removes the
+ multipliers in the private frame methods.
+
+ Reviewed by darin
+
+ * WebView.subproj/WebFrameView.m:
+ (-[WebFrameView _verticalKeyboardScrollDistance]):
+ (-[WebFrameView initWithFrame:]):
+ (-[WebFrameView _horizontalKeyboardScrollDistance]):
+
=== WebKit-312.1 ===
2005-03-31 Chris Blumenberg <cblu@apple.com>
- (float)_verticalKeyboardScrollDistance
{
- // verticalLineScroll is quite small, to make scrolling from the scroll bar
- // arrows relatively smooth. But this seemed too small for scrolling with
- // the arrow keys, so we bump up the number here. Cheating? Perhaps.
- return [[self _scrollView] verticalLineScroll] * 4;
+ // Arrow keys scroll the same distance that clicking the scroll arrow does.
+ return [[self _scrollView] verticalLineScroll];
}
- (BOOL)_shouldDrawBorder
[scrollView setHasVerticalScroller: NO];
[scrollView setHasHorizontalScroller: NO];
[scrollView setAutoresizingMask: NSViewWidthSizable | NSViewHeightSizable];
+ [scrollView setLineScroll:40.0];
[self addSubview: scrollView];
// don't call our overridden version here; we need to make the standard NSView link between us
// and our subview so that previousKeyView and previousValidKeyView work as expected. This works
- (float)_horizontalKeyboardScrollDistance
{
- // horizontalLineScroll is quite small, to make scrolling from the scroll bar
- // arrows relatively smooth. But this seemed too small for scrolling with
- // the arrow keys, so we bump up the number here. Cheating? Perhaps.
- return [[self _scrollView] horizontalLineScroll] * 4;
+ // Arrow keys scroll the same distance that clicking the scroll arrow does.
+ return [[self _scrollView] horizontalLineScroll];
}
- (float)_horizontalPageScrollDistance