ui: fixed panning to avoid jumping back to zero on mouse down

This commit is contained in:
malte_langkabel
2016-10-10 11:37:56 +02:00
parent b66f98b1e7
commit 95859d9605
+6
View File
@@ -537,7 +537,13 @@ void QtCodeArea::clearSelection()
{
QTextCursor cursor = textCursor();
cursor.clearSelection();
QScrollBar* scrollbar = horizontalScrollBar();
int scrollValue = horizontalScrollBar()->value();
setTextCursor(cursor);
scrollbar->setValue(scrollValue);
}
void QtCodeArea::setIDECursorPosition()