@@ -144,18 +144,18 @@ Item {
144144 priv.resetEdges();
145145 priv.nearBottomRightCorner = true;
146146 root.fakeMaximizeBottomRightAnimationRequested(priv.progress);
147− } else if (sensingPoints.topLeft.x < priv.triggerArea && target.canBeMaximizedLeftRight) { // left
148− priv.progress = MathUtils.clampAndProject(sensingPoints.topLeft.x, priv.triggerArea, 0, 0, 1);
147+ } else if (sensingPoints.left.x < priv.triggerArea && target.canBeMaximizedLeftRight) { // left
148+ priv.progress = MathUtils.clampAndProject(sensingPoints.left.x, priv.triggerArea, 0, 0, 1);
149149 priv.resetEdges();
150150 priv.nearLeftEdge = true;
151151 root.fakeMaximizeLeftAnimationRequested(priv.progress);
152− } else if (sensingPoints.topRight.x > stageWidth - priv.triggerArea && target.canBeMaximizedLeftRight) { // right
153− priv.progress = MathUtils.clampAndProject(sensingPoints.topRight.x, stageWidth - priv.triggerArea, stageWidth, 0, 1);
152+ } else if (sensingPoints.right.x > stageWidth - priv.triggerArea && target.canBeMaximizedLeftRight) { // right
153+ priv.progress = MathUtils.clampAndProject(sensingPoints.right.x, stageWidth - priv.triggerArea, stageWidth, 0, 1);
154154 priv.resetEdges();
155155 priv.nearRightEdge = true;
156156 root.fakeMaximizeRightAnimationRequested(priv.progress);
157− } else if (sensingPoints.topLeft.y < PanelState.panelHeight && target.canBeMaximized) { // top
158− priv.progress = MathUtils.clampAndProject(sensingPoints.topLeft.y, Math.max(PanelState.panelHeight, priv.triggerArea), 0, 0, 1);
157+ } else if (sensingPoints.top.y < PanelState.panelHeight && target.canBeMaximized) { // top
158+ priv.progress = MathUtils.clampAndProject(sensingPoints.top.y, Math.max(PanelState.panelHeight, priv.triggerArea), 0, 0, 1);
159159 priv.resetEdges();
160160 priv.nearTopEdge = true;
161161 root.fakeMaximizeAnimationRequested(priv.progress);