ui: fixed panning in code

* fixed bug where panning stopped when hovering the line number area in the code view.
* when relasing the mouse button on a clickable code location after panning the location is not activated.
This commit is contained in:
malte_langkabel
2016-04-25 10:29:55 +02:00
parent 6bca5d2964
commit 55660563c8
2 changed files with 31 additions and 19 deletions
+3 -1
View File
@@ -179,7 +179,9 @@ private:
std::vector<const Annotation*> m_hoveredAnnotations;
int m_digits;
int m_panningValue; // just for horizontal panning
bool m_isPanning;
QPoint m_oldMousePosition;
int m_panningDistance;
QAction* m_setIDECursorPositionAction;
QPoint m_eventPosition; // is needed for IDE cursor control via context menu