on xenial help sign in
use === to make the reviewer happy

(both sides are ints, there's no difference between == and === here as implicit coercion doesn't happen here anyways)

commit99bb8c4aeb0105f8b18f86c35c598c72f3b66fc6 authorMichael Zanetti <michael.zanetti@canonical.com> dateMon 8 Dec 2014, 11:21 (12 years ago) parentc094449
2 files changed+2−2
qml/Stages/PhoneStage.qml+1−1 qml/Stages/TabletStage.qml+1−1
qml/Stages/PhoneStage.qml+1−1
@@ -298,7 +298,7 @@ Rectangle {
298298 x: {
299299 // focused app is always positioned at 0 except when following left edge drag
300300 if (index == 0) {
301− if (!isDash && root.inverseProgress > 0 && spreadView.phase == 0) {
301+ if (!isDash && root.inverseProgress > 0 && spreadView.phase === 0) {
302302 return root.inverseProgress;
303303 }
304304 return 0;
qml/Stages/TabletStage.qml+1−1
@@ -492,7 +492,7 @@ Rectangle {
492492 interactive: !spreadView.interactive && spreadView.phase === 0 && root.interactive
493493 swipeToCloseEnabled: spreadView.interactive && !snapAnimation.running
494494 maximizedAppTopMargin: root.maximizedAppTopMargin
495− dragOffset: !isDash && model.appId == priv.mainStageAppId && root.inverseProgress > 0 && spreadView.phase ==0 ? root.inverseProgress : 0
495+ dragOffset: !isDash && model.appId == priv.mainStageAppId && root.inverseProgress > 0 && spreadView.phase === 0 ? root.inverseProgress : 0
496496 application: ApplicationManager.get(index)
497497 closeable: !isDash
498498