Mercurial > hg > svgui
comparison view/View.cpp @ 791:b076cefaf708 tonioni
Play pointer: Avoid disconcerting jump when dragging so pointer is at start of pane (without having it leave the pane)
| author | Chris Cannam |
|---|---|
| date | Thu, 12 Jun 2014 13:42:10 +0100 |
| parents | 9fd1bdf214dd |
| children | edada332c374 |
comparison
equal
deleted
inserted
replaced
| 790:7555b8b17e6e | 791:b076cefaf708 |
|---|---|
| 1058 shouldScroll = true; | 1058 shouldScroll = true; |
| 1059 } | 1059 } |
| 1060 | 1060 |
| 1061 if (xnew > width() / 8) { | 1061 if (xnew > width() / 8) { |
| 1062 m_followPlayIsDetached = false; | 1062 m_followPlayIsDetached = false; |
| 1063 } else if (somethingGoingOn) { | |
| 1064 m_followPlayIsDetached = true; | |
| 1063 } | 1065 } |
| 1064 | 1066 |
| 1065 if (!somethingGoingOn && shouldScroll) { | 1067 if (!somethingGoingOn && shouldScroll) { |
| 1066 long offset = getFrameForX(width()/2) - getStartFrame(); | 1068 long offset = getFrameForX(width()/2) - getStartFrame(); |
| 1067 long newCentre = sf + offset; | 1069 long newCentre = sf + offset; |
