summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/wx
diff options
context:
space:
mode:
authorWebKit Authors <webkit-authors@webkit.org>2008-10-21 07:00:00 -0700
committerWebKit Authors <webkit-authors@webkit.org>2008-10-21 07:00:00 -0700
commit87eb0cb35bad8784770ebc807e6c982432e47107 (patch)
treeaaf1b89429ec8f43301fc7727a43bb6651b4c26f /WebCore/platform/wx
parentd8543bb6618c17b12da906afa77d216f58cf4058 (diff)
downloadexternal_webkit-87eb0cb35bad8784770ebc807e6c982432e47107.zip
external_webkit-87eb0cb35bad8784770ebc807e6c982432e47107.tar.gz
external_webkit-87eb0cb35bad8784770ebc807e6c982432e47107.tar.bz2
SVN commits 30708-30711
Diffstat (limited to 'WebCore/platform/wx')
-rw-r--r--WebCore/platform/wx/MouseWheelEventWx.cpp4
-rw-r--r--WebCore/platform/wx/ScrollViewWx.cpp17
2 files changed, 18 insertions, 3 deletions
diff --git a/WebCore/platform/wx/MouseWheelEventWx.cpp b/WebCore/platform/wx/MouseWheelEventWx.cpp
index 0bfbd4a..6064176 100644
--- a/WebCore/platform/wx/MouseWheelEventWx.cpp
+++ b/WebCore/platform/wx/MouseWheelEventWx.cpp
@@ -40,6 +40,10 @@ PlatformWheelEvent::PlatformWheelEvent(const wxMouseEvent& event, const wxPoint&
, m_metaKey(event.MetaDown()) // FIXME: We'll have to test other browsers
, m_deltaX(0) // wx doesn't support horizontal mouse wheel scrolling
, m_deltaY(event.GetWheelRotation() / event.GetWheelDelta())
+ , m_isAccepted(false)
+ , m_isContinuous(false)
+ , m_continuousDeltaX(0)
+ , m_continuousDeltaY(0)
{
}
diff --git a/WebCore/platform/wx/ScrollViewWx.cpp b/WebCore/platform/wx/ScrollViewWx.cpp
index b6c5ae4..8726fc3 100644
--- a/WebCore/platform/wx/ScrollViewWx.cpp
+++ b/WebCore/platform/wx/ScrollViewWx.cpp
@@ -68,7 +68,6 @@ public:
win->Connect(wxEVT_SCROLLWIN_PAGEDOWN, wxScrollWinEventHandler(ScrollViewPrivate::OnScrollWinEvents), NULL, this);
win->Connect(wxEVT_SCROLLWIN_THUMBTRACK, wxScrollWinEventHandler(ScrollViewPrivate::OnScrollWinEvents), NULL, this);
win->Connect(wxEVT_SCROLLWIN_THUMBRELEASE, wxScrollWinEventHandler(ScrollViewPrivate::OnScrollWinEvents), NULL, this);
- win->Connect(wxEVT_SCROLLWIN_TOP, wxScrollWinEventHandler(ScrollViewPrivate::OnScrollWinEvents), NULL, this);
}
void OnScrollWinEvents(wxScrollWinEvent& e)
@@ -84,18 +83,30 @@ public:
else
pos.y = e.GetPosition();
}
- else if ( scrollType == wxEVT_SCROLLWIN_LINEDOWN ) {
+ else if (scrollType == wxEVT_SCROLLWIN_LINEDOWN) {
if (horiz)
pos.x += LINE_STEP;
else
pos.y += LINE_STEP;
}
- else if ( scrollType == wxEVT_SCROLLWIN_LINEUP ) {
+ else if (scrollType == wxEVT_SCROLLWIN_LINEUP) {
if (horiz)
pos.x -= LINE_STEP;
else
pos.y -= LINE_STEP;
}
+ else if (scrollType == wxEVT_SCROLLWIN_PAGEUP) {
+ if (horiz)
+ pos.x -= m_scrollView->visibleWidth() - PAGE_KEEP;
+ else
+ pos.y -= m_scrollView->visibleHeight() - PAGE_KEEP;
+ }
+ else if (scrollType == wxEVT_SCROLLWIN_PAGEDOWN) {
+ if (horiz)
+ pos.x += m_scrollView->visibleWidth() - PAGE_KEEP;
+ else
+ pos.y += m_scrollView->visibleHeight() - PAGE_KEEP;
+ }
else
return e.Skip();