Changeset View
Changeset View
Standalone View
Standalone View
applets/taskmanager/package/contents/ui/MouseHandler.qml
Show First 20 Lines • Show All 89 Lines • ▼ Show 20 Line(s) | 76 | onDragMove: { | |||
---|---|---|---|---|---|
90 | // If we're mixing launcher tasks with other tasks and are moving | 90 | // If we're mixing launcher tasks with other tasks and are moving | ||
91 | // a (small) launcher task across a non-launcher task, don't allow | 91 | // a (small) launcher task across a non-launcher task, don't allow | ||
92 | // the latter to be the move target twice in a row for a while, as | 92 | // the latter to be the move target twice in a row for a while, as | ||
93 | // it will naturally be moved underneath the cursor as result of the | 93 | // it will naturally be moved underneath the cursor as result of the | ||
94 | // initial move, due to being far larger than the launcher delegate. | 94 | // initial move, due to being far larger than the launcher delegate. | ||
95 | // TODO: This restriction (minus the timer, which improves things) | 95 | // TODO: This restriction (minus the timer, which improves things) | ||
96 | // has been proven out in the EITM fork, but could be improved later | 96 | // has been proven out in the EITM fork, but could be improved later | ||
97 | // by tracking the cursor movement vector and allowing the drag if | 97 | // by tracking the cursor movement vector and allowing the drag if | ||
98 | // the movement direction has reversed, etablishing user intent to | 98 | // the movement direction has reversed, establishing user intent to | ||
99 | // move back. | 99 | // move back. | ||
100 | if (!plasmoid.configuration.separateLaunchers && tasks.dragSource != null | 100 | if (!plasmoid.configuration.separateLaunchers && tasks.dragSource != null | ||
101 | && tasks.dragSource.m.IsLauncher === true && above.m.IsLauncher !== true | 101 | && tasks.dragSource.m.IsLauncher === true && above.m.IsLauncher !== true | ||
102 | && above === ignoredItem) { | 102 | && above === ignoredItem) { | ||
103 | return; | 103 | return; | ||
104 | } else { | 104 | } else { | ||
105 | ignoredItem = null; | 105 | ignoredItem = null; | ||
106 | } | 106 | } | ||
▲ Show 20 Lines • Show All 88 Lines • Show Last 20 Lines |