on xenial help sign in
DragHandle: javascript argument name clashes with local variable. Yes it works, but is a little unsafe
0f7ab28Gerry Boland
Components/DragHandle.qml+2−2
@@ -113,8 +113,8 @@ EdgeDragArea {
113 }
113 }
114 }
114 }
115
115
116− function limitMovement(step) {
116+ function limitMovement(inputStep) {
117− var targetValue = MathLocal.clamp(dragParent[targetProp] + step, minValue, maxValue);
117+ var targetValue = MathLocal.clamp(dragParent[targetProp] + inputStep, minValue, maxValue);
118 var step = targetValue - dragParent[targetProp];
118 var step = targetValue - dragParent[targetProp];
119
119
120 if (hintDisplacement == 0) {
120 if (hintDisplacement == 0) {