Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

切換題目後,會殘留前一題的衛星雲圖約0.5秒 #40

Open
dyfu95 opened this issue Jan 28, 2022 · 0 comments
Open

切換題目後,會殘留前一題的衛星雲圖約0.5秒 #40

dyfu95 opened this issue Jan 28, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@dyfu95
Copy link
Collaborator

dyfu95 commented Jan 28, 2022

Expected Behavior
切換題目時,不會殘留前一題的衛星雲圖

Current Behavior
切換題目後,會殘留前一題的衛星星雲約0.5秒,才會切換
To Reproduce
Steps to reproduce the behavior:

  1. 答完taskB後,前往下一題的taskA時,會殘留前一題的taskA衛星雲圖
  2. 答完taskA後,前往下一題的taskB時,會殘留前一題的taskB衛星雲圖
    以上兩個行為,都會觸發bug

Possible Solution
應該是我把打衛星雲圖API所需要的參數(經緯度),都寫在GameContent這個父元件,而子元件taskA與taskB會先掛載完後,GameContent才會把參數傳進去,才顯示衛星雲圖。這中間的時間差會造成:當子元鍵掛載完時,有一小段時間是還沒傳入新的經緯度的,所以衛星雲圖不會更新,因此還停留在前一題的衛星雲圖。

這個解法應該跟 #21 類似?應該要將「掛載畫面」設在「撈圖資資料」之後,也就是當圖資資料撈完後,才開始掛載畫面。

Context (Environment)
對於使用者而言,0.5秒的殘留會造成使用者體驗不佳。

Additional context
Add any other context about the problem here.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

@dyfu95 dyfu95 added the enhancement New feature or request label Jan 28, 2022
@dyfu95 dyfu95 self-assigned this Jan 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant