mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-28 22:53:09 +00:00
horizontal auto scroll works better
This commit is contained in:
parent
401efee30f
commit
3ce188ee46
1 changed files with 2 additions and 2 deletions
|
|
@ -107,10 +107,10 @@ ContainmentLayoutManager.ItemContainer {
|
|||
|
||||
var pos = plasmoid.fullRepresentationItem.mapFromItem(delegate, dragCenter.x, dragCenter.y);
|
||||
//SCROLL LEFT
|
||||
if (pos.x < plasmoid.availableScreenRect.x + units.gridUnit) {
|
||||
if (pos.x < units.gridUnit) {
|
||||
plasmoid.fullRepresentationItem.scrollLeft();
|
||||
//SCROLL RIGHT
|
||||
} else if (pos.x > plasmoid.availableScreenRect.x + plasmoid.availableScreenRect.width - units.gridUnit) {
|
||||
} else if (pos.x > mainFlickable.width - units.gridUnit) {
|
||||
plasmoid.fullRepresentationItem.scrollRight();
|
||||
//DON't SCROLL
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue