Mercurial > hg > svgui
comparison view/Pane.cpp @ 897:499b637f2a26 alignment_view
Always resist vertical drag -- it's just too annoying if it happens accidentally while playing
author | Chris Cannam |
---|---|
date | Thu, 15 Jan 2015 16:00:53 +0000 |
parents | a3b3b64fbc43 |
children | 36cddc3de023 |
comparison
equal
deleted
inserted
replaced
895:a3b3b64fbc43 | 897:499b637f2a26 |
---|---|
1943 m_clickPos, | 1943 m_clickPos, |
1944 e->pos(), | 1944 e->pos(), |
1945 true, // can move horiz | 1945 true, // can move horiz |
1946 canTopLayerMoveVertical(), // can move vert | 1946 canTopLayerMoveVertical(), // can move vert |
1947 canTopLayerMoveVertical() || (m_manager && m_manager->isPlaying()), // resist horiz | 1947 canTopLayerMoveVertical() || (m_manager && m_manager->isPlaying()), // resist horiz |
1948 !(m_manager && m_manager->isPlaying())); // resist vert | 1948 true); // resist vert |
1949 | 1949 |
1950 if (m_dragMode == HorizontalDrag || | 1950 if (m_dragMode == HorizontalDrag || |
1951 m_dragMode == FreeDrag) { | 1951 m_dragMode == FreeDrag) { |
1952 | 1952 |
1953 int frameOff = getFrameForX(e->x()) - getFrameForX(m_clickPos.x()); | 1953 int frameOff = getFrameForX(e->x()) - getFrameForX(m_clickPos.x()); |