Verified Commit 1c1cf61b authored by ivan tkachenko's avatar ivan tkachenko
Browse files

effects/private: Drop unused property dragHandler

parent aa620049
......@@ -239,11 +239,11 @@ FocusScope {
windowHeap: heap
targetScale: {
var localPressPosition = dragHandler.centroid.scenePressPosition.y - heap.layout.Kirigami.ScenePosition.y;
var localPressPosition = activeDragHandler.centroid.scenePressPosition.y - heap.layout.Kirigami.ScenePosition.y;
if (localPressPosition == 0) {
return 0.1
} else {
var localPosition = dragHandler.centroid.scenePosition.y - heap.layout.Kirigami.ScenePosition.y;
var localPosition = activeDragHandler.centroid.scenePosition.y - heap.layout.Kirigami.ScenePosition.y;
return Math.max(0.1, Math.min(localPosition / localPressPosition, 1))
}
}
......
......@@ -20,7 +20,6 @@ Item {
required property int index
required property Item windowHeap
readonly property alias dragHandler: thumb.activeDragHandler
readonly property bool selected: thumb.windowHeap.selectedIndex == index
//TODO: move?
readonly property bool hidden: {
......
Supports Markdown
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