Commit 6ed3f3a7 authored by Kurt Hindenburg's avatar Kurt Hindenburg
Browse files

Remove delay in dragging tabs

When one tries to drag a tab there is a lot of lag at the start of the
drag gesture. As a result the tab is likely to be trailing the mouse
pointer by inches so that figuring out where the tab will end up is
quite confusing.

BUG: 371939
Differential Revision: https://phabricator.kde.org/D7451

(cherry picked from commit 14bf3b41)
parent a9f3f4f6
......@@ -81,7 +81,7 @@ void ViewContainerTabBar::mouseMoveEvent(QMouseEvent *event)
if (event->buttons() == Qt::LeftButton) {
QPoint dragPos = _dragStart - event->pos();
if (dragPos.manhattanLength() > QApplication::startDragDistance()
&& _mousePressTimer->elapsed() > QApplication::startDragTime()) {
|| _mousePressTimer->elapsed() > QApplication::startDragTime()) {
int tab = tabAt(_dragStart);
if (tab != -1) {
emit initiateDrag(tab);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment