@@ -137,9 +137,10 @@ Rectangle {
137137
138138 if (data.swipeToClose) {
139139 verify(appWindowWithShadow.y < 0);
140− // Verify that the delegate started moving exactly 2 gus after the finger movement
141− // and did not jump up to the finger, but lags those 2 gus behind
142− verify(Math.abs(Math.abs(appWindowWithShadow.y) - dragDistance) == units.gu(2));
140+ var threshold = findChild(spreadDelegateLoader.item, "dragArea").threshold
141+ // Verify that the delegate started moving exactly "threshold" after the finger movement
142+ // and did not jump up to the finger, but lags the threshold behind
143+ verify(Math.abs(Math.abs(appWindowWithShadow.y) - dragDistance) == threshold);
143144
144145 touchRelease(spreadDelegateLoader.item, touchX, toY - units.gu(1));
145146