Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added SCROLL_DEFAULT_STEP_SIZE property

  • Loading branch information...
commit 2664c892e00d23409c23efa91d4b34b5e3d5ca47 1 parent 0fdecf2
@gogoprog gogoprog authored
View
2  Source/Core/Element.cpp
@@ -1577,7 +1577,7 @@ void Element::ProcessEvent(Event& event)
if (overflow_property == OVERFLOW_AUTO ||
overflow_property == OVERFLOW_SCROLL)
{
- SetScrollTop(GetScrollTop() + wheel_delta * ElementUtilities::GetLineHeight(this));
+ SetScrollTop(GetScrollTop() + wheel_delta * (GetFontFaceHandle() ? ElementUtilities::GetLineHeight(this) : GetProperty< int >(SCROLL_DEFAULT_STEP_SIZE)));
event.StopPropagation();
}
}
View
1  Source/Core/StringCache.cpp
@@ -92,6 +92,7 @@ const String CURSOR = "cursor";
const String DRAG = "drag";
const String TAB_INDEX = "tab-index";
const String SCROLLBAR_MARGIN = "scrollbar-margin";
+const String SCROLL_DEFAULT_STEP_SIZE = "scroll-default-step-size";
const String MOUSEDOWN = "mousedown";
const String MOUSESCROLL = "mousescroll";
View
1  Source/Core/StringCache.h
@@ -95,6 +95,7 @@ extern const String CURSOR;
extern const String DRAG;
extern const String TAB_INDEX;
extern const String SCROLLBAR_MARGIN;
+extern const String SCROLL_DEFAULT_STEP_SIZE;
extern const String MOUSEDOWN;
extern const String MOUSESCROLL;

0 comments on commit 2664c89

Please sign in to comment.
Something went wrong with that request. Please try again.