Fix issue with Timeline scroll: when clicking with mouse wheel the scroll jumps to other location

This commit is contained in:
David Capello 2014-05-02 21:10:19 -03:00
parent a5b1bd1875
commit cb0f89ea3a

View File

@ -284,6 +284,7 @@ bool Timeline::onProcessMessage(Message* msg)
if (mouseMsg->middle() || key[KEY_SPACE]) {
captureMouse();
m_state = STATE_SCROLLING;
m_oldPos = static_cast<MouseMessage*>(msg)->position();
return true;
}