# HG changeset patch # User Justin Salamon # Date 1392755341 18000 # Node ID 62e7d4b378ae3d5e2e1558965733882c155cacab # Parent d1c0abfb11bef9bf9af010a8468f6c2a717d36bb clicking on selection pane now moves play head to that location diff -r d1c0abfb11be -r 62e7d4b378ae view/Pane.cpp --- a/view/Pane.cpp Tue Feb 04 14:35:59 2014 +0000 +++ b/view/Pane.cpp Tue Feb 18 15:29:01 2014 -0500 @@ -1452,6 +1452,7 @@ if (m_manager && m_manager->haveInProgressSelection()) { + //cerr << "JTEST: release with selection" << endl; bool exclusive; Selection selection = m_manager->getInProgressSelection(exclusive); @@ -1467,6 +1468,16 @@ m_manager->addSelection(selection); } } + else if (m_manager && !m_manager->haveInProgressSelection()) { + + //cerr << "JTEST: release without selection" << endl; + // Get frame locatrion of mouse + int mouseFrame = getFrameForX(e->x()); + //cerr << "JTEST: frame location of click is " << mouseFrame << endl; + // Move play head to that frame location + int playbackFrame = fmax(0,mouseFrame); + m_manager->setPlaybackFrame(playbackFrame); + } update();