From b58552e905d35adf58f1f9b7d1f17d7e695e6d24 Mon Sep 17 00:00:00 2001 From: Mahdi Dibaiee Date: Tue, 4 Apr 2017 23:21:18 +0430 Subject: [PATCH] fix --- web/static/js/main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/static/js/main.js b/web/static/js/main.js index 8734479..98df2fd 100644 --- a/web/static/js/main.js +++ b/web/static/js/main.js @@ -518,6 +518,8 @@ function newGame() { $('#loading').removeClass('active'); + $("#player").css({ rotate: 0 }); + var i = 0; setTimeout(function p() { if (!playing) return; @@ -531,7 +533,7 @@ function newGame() { var playerbottom = $("#player").position().top + $("#player").width(); //we use width because he'll be rotated 90 deg var floor = flyArea; var movey = Math.max(0, floor - playerbottom); - $("#player").transition({ y: movey + 'px', rotate: 90}, 1000, 'easeInOutCubic'); + $("#player").transition({ top: movey + 'px', rotate: 90}, 1000, 'easeInOutCubic'); if(isIncompatible.any()) {