forked from qt-creator/qt-creator
Increase the delay for folding blocks
Details: 40 ms seems a bit too short. We should at least allow the mouse cursor to pass undetected. The 10 ms delay seems a bit redundant.
This commit is contained in:
@@ -2732,8 +2732,9 @@ void BaseTextEditor::extraAreaMouseEvent(QMouseEvent *e)
|
||||
}
|
||||
|
||||
if (highlightBlockNumber != d->extraAreaHighlightCollapseBlockNumber
|
||||
|| highlightColumn != d->extraAreaHighlightCollapseColumn)
|
||||
d->m_highlightBlocksTimer->start(d->m_highlightBlocksInfo.isEmpty() ? 40 : 10);
|
||||
|| highlightColumn != d->extraAreaHighlightCollapseColumn) {
|
||||
d->m_highlightBlocksTimer->start(d->m_highlightBlocksInfo.isEmpty() ? 120 : 0);
|
||||
}
|
||||
}
|
||||
|
||||
if (e->type() == QEvent::MouseButtonPress || e->type() == QEvent::MouseButtonDblClick) {
|
||||
|
||||
Reference in New Issue
Block a user