diff options
author | Memphiz <memphis@machzwo.de> | 2011-07-04 20:19:02 +0200 |
---|---|---|
committer | Memphiz <memphis@machzwo.de> | 2011-07-04 20:19:02 +0200 |
commit | 5215f955cc766f56516a7dfe8310e396624b6eb9 (patch) | |
tree | b25dba0dd6aef0dd47011031c71b76a5082e59a5 | |
parent | c70b9d63a10def62fdf4ce1a6d23bf7f3fe8e15e (diff) |
[fix] - start scrolltimer when panning - for getting the letter index shown when flicking - timer will be stopped on GESTURE_END
-rw-r--r-- | xbmc/guilib/GUIBaseContainer.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xbmc/guilib/GUIBaseContainer.cpp b/xbmc/guilib/GUIBaseContainer.cpp index 429954b4c8..ac0784bb48 100644 --- a/xbmc/guilib/GUIBaseContainer.cpp +++ b/xbmc/guilib/GUIBaseContainer.cpp @@ -662,6 +662,7 @@ EVENT_RESULT CGUIBaseContainer::OnMouseEvent(const CPoint &point, const CMouseEv m_scrollOffset -= (m_orientation == HORIZONTAL) ? event.m_offsetX : event.m_offsetY; float size = (m_layout) ? m_layout->Size(m_orientation) : 10.0f; int offset = (int)MathUtils::round_int(m_scrollOffset / size); + m_scrollTimer.Start(); SetOffset(offset); ValidateOffset(); return EVENT_RESULT_HANDLED; |