Commit d54a63ba authored by Marco Martin's avatar Marco Martin

autoscroll only at the very edges

parent ba9babb1
......@@ -78,10 +78,10 @@ ContainmentLayoutManager.ItemContainer {
var pos = plasmoid.fullRepresentationItem.mapFromItem(delegate, dragCenter.x, dragCenter.y);
//SCROLL UP
if (pos.y < plasmoid.fullRepresentationItem.height / 4) {
if (pos.y < plasmoid.availableScreenRect.y + units.gridUnit) {
plasmoid.fullRepresentationItem.scrollUp();
//SCROLL DOWN
} else if (pos.y > 3 * (plasmoid.fullRepresentationItem.height / 4)) {
} else if (pos.y > plasmoid.availableScreenRect.y + plasmoid.availableScreenRect.height - units.gridUnit) {
plasmoid.fullRepresentationItem.scrollDown();
//DON't SCROLL
} else {
......
......@@ -321,8 +321,8 @@ Item {
ScrollIndicator {
id: scrollDownIndicator
anchors {
bottom: parent.bottom
bottomMargin: units.gridUnit * 2
bottom: favoriteStrip.top
bottomMargin: units.gridUnit
}
elementId: "down-arrow"
}
......
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