Mercurial > hg > svgui
comparison view/Pane.cpp @ 508:1d605a89fd9b
* Make ctrl-drag drag the view without updating anything else (in
particular, without moving the playback position). #2605356
author | Chris Cannam |
---|---|
date | Wed, 25 Feb 2009 12:12:07 +0000 |
parents | 08e1ccfe289c |
children | 683c46d7500b |
comparison
equal
deleted
inserted
replaced
507:efe0f232685f | 508:1d605a89fd9b |
---|---|
1737 newCentreFrame = getModelsEndFrame(); | 1737 newCentreFrame = getModelsEndFrame(); |
1738 if (newCentreFrame > 0) --newCentreFrame; | 1738 if (newCentreFrame > 0) --newCentreFrame; |
1739 } | 1739 } |
1740 | 1740 |
1741 if (getXForFrame(m_centreFrame) != getXForFrame(newCentreFrame)) { | 1741 if (getXForFrame(m_centreFrame) != getXForFrame(newCentreFrame)) { |
1742 setCentreFrame(newCentreFrame); | 1742 setCentreFrame(newCentreFrame, !m_ctrlPressed); |
1743 } | 1743 } |
1744 } | 1744 } |
1745 | 1745 |
1746 if (m_dragMode == VerticalDrag || | 1746 if (m_dragMode == VerticalDrag || |
1747 m_dragMode == FreeDrag) { | 1747 m_dragMode == FreeDrag) { |