Skip to content

Commit

Permalink
Merge pull request #8095 from Memphiz/fix_inertialscrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
jenkins4kodi committed Sep 19, 2015
2 parents 09d46e8 + 69de995 commit 9f3e337
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions xbmc/input/InertialScrollingHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,16 @@ bool CInertialScrollingHandler::CheckForInertialScrolling(const CAction* action)
//ask if the control wants inertial scrolling
if(g_windowManager.SendMessage(message))
{
if( message.GetParam1() == EVENT_RESULT_PAN_HORIZONTAL ||
message.GetParam1() == EVENT_RESULT_PAN_VERTICAL)
int result = 0;
if (message.GetPointer())
{
int *p = static_cast<int*>(message.GetPointer());
message.SetPointer(nullptr);
result = *p;
delete p;
}
if( result == EVENT_RESULT_PAN_HORIZONTAL ||
result == EVENT_RESULT_PAN_VERTICAL)
{
inertialRequested = true;
}
Expand Down

0 comments on commit 9f3e337

Please sign in to comment.