on xenial help sign in
Fix closing of the indicators menu
5529608Albert Astals Cid
qml/Components/DragHandle.qml+2
@@ -179,6 +179,8 @@ SwipeArea {
179 onDistanceChanged: {
179 onDistanceChanged: {
180 if (dragging) {
180 if (dragging) {
181 // don't go the whole distance in order to smooth out the movement
181 // don't go the whole distance in order to smooth out the movement
182+ if (!Direction.isPositive(direction))
183+ distance = -distance;
182 var toAdd = d.limitMovement(distance);
184 var toAdd = d.limitMovement(distance);
183 parent[d.targetProp] = d.startValue + toAdd;
185 parent[d.targetProp] = d.startValue + toAdd;
184 }
186 }
qml/Panel/IndicatorsMenu.qml+5−1
@@ -236,7 +236,11 @@ Showable {
236 PanelVelocityCalculator {
236 PanelVelocityCalculator {
237 id: yVelocityCalculator
237 id: yVelocityCalculator
238 velocityThreshold: d.hasCommitted ? 0.1 : 0.3
238 velocityThreshold: d.hasCommitted ? 0.1 : 0.3
239− trackedValue: d.activeDragHandle ? d.activeDragHandle.touchSceneY : 0
239+ trackedValue: d.activeDragHandle ?
240+ (Direction.isPositive(d.activeDragHandle.direction) ?
241+ d.activeDragHandle.distance :
242+ -d.activeDragHandle.distance)
243+ : 0
240
244
241 onVelocityAboveThresholdChanged: d.updateState()
245 onVelocityAboveThresholdChanged: d.updateState()
242 }
246 }