Kaydet (Commit) cddb51d7 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Make contents of combobox follow the finger when scrolling with a pan gesture

It is the contents that we are dragging with the gesture, not the
scrollbar "thumb". The DoScroll() call takes as argument how much the
"thumb" should be moved, though.

Change-Id: Id95a4bf9d2bb4e950dd85c6bebb4d2b5f2726ee0
üst f8dbee4d
...@@ -760,7 +760,7 @@ bool Window::HandleScrollCommand( const CommandEvent& rCmd, ...@@ -760,7 +760,7 @@ bool Window::HandleScrollCommand( const CommandEvent& rCmd,
else if(pData->meEventType == GestureEventType::PanningUpdate) else if(pData->meEventType == GestureEventType::PanningUpdate)
{ {
long nOriginalPosition = mpWindowImpl->mpFrameData->mnTouchPanPosition; long nOriginalPosition = mpWindowImpl->mpFrameData->mnTouchPanPosition;
pVScrl->DoScroll(nOriginalPosition + (pData->mfOffset)); pVScrl->DoScroll(nOriginalPosition + (pData->mfOffset / pVScrl->GetVisibleSize()));
} }
if (pData->meEventType == GestureEventType::PanningEnd) if (pData->meEventType == GestureEventType::PanningEnd)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment