Skip to content

Commit 1ee1646

Browse files
committed
studio parser‘s issue - loadingBar direction
1 parent 7eccfe7 commit 1ee1646

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frameworks/js-bindings/bindings/script/studio/parsers/timelineParser-2.x.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -766,8 +766,8 @@
766766
widget.loadTexture(path, type);
767767
});
768768

769-
var direction = json["ProgressType"];
770-
widget.setDirection((direction != "Left_To_Right") | 0);
769+
var direction = json["ProgressType"] === "Right_To_Left" ? 1 : 0;
770+
widget.setDirection(direction);
771771

772772
var percent = getParam(json["ProgressInfo"], 80);
773773
if(percent != null)

0 commit comments

Comments
 (0)