Problems with 'translate' angular animations in Angular 14
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- angular, typescript
- 領域
- frontend, mobile-dev
調査の方向性
リンクされている StackBlitz デモから始め、package.json と package-13.json を比較し、Android と iOS で translate アニメーションを実行します。@animationTransition.done ハンドラーと、デモで使用されている translate スタイルを追跡します。translate アニメーションが両方のプラットフォームで動作し、各アニメーションの終了時に完了イベントが発火すれば完了です。これは Angular 13 の動作と一致します。
索引モデルが issue の本文から書いたものです。
説明
There are a number of issues that arise in Angular animations that contain 'translate' styles, but only on Angular 14.
I've created a demo app to demonstrate this:
https://stackblitz.com/edit/nativescript-stackblitz-templates-guamwx
If you switch out the package.json with package-13.json, these problems basically go away.
First of all, the translate animations don't seem to work at all on Android.
You will notice if you run in Android, the translation animations don't run when using angular 14, but they do work on angular 13.
Next, the done even does not run when the animation completes.
Running on iOS, you'll see that the translate animations run, but the done event does not get triggered until the start of the next animation. (You can see this in the console, where the start and end events are logged.). Again, if you switch to use angular 13, these problems go away.
(@animationTransition.done)="animationTriggerEnd()"
In the demo project, animationTriggerEnd() is not run until the next animation begins. However, if you remove the translate animations, the events fire normally:
` transition(
(fromState, toState) => fromState < toState,
[
style({ opacity: 0 }),
animate('400ms ease-out', style({ opacity: 1 }))
]
),`
Lastly, some translate animations just don't work.
If on iOS you switch the translate animations to go from 0 to +/- 100%, the animation doesn't happen: the box just jumps.
` transition(
(fromState, toState) => fromState < toState,
[
style({ opacity: 0, transform: "translateX(0)" }),
animate('400ms ease-out', style({ opacity: 1, transform: "translateX(100%)" }))
]
),`
But if you do this same animation on Angular 13, the animation runs normally.
I'm not sure what's causing all of these issues, but they seemed to appear when Angular 14 came out. I've been trying to work around them, but I haven't been able to find a way yet.
What is causing these issues, and can they be corrected?
- 主要言語
- TypeScript
- スター
- 55
- フォーク
- 13
- 平均マージ
- 16分
- マージ済み PR(30日)
- 1
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
NativeScript/angular のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
NativeScript/angular#170 · コメント 1 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
NativeScript/angular#164 ·
-
My types are gone オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
NativeScript/angular#163 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
NativeScript/angular#158 · リアクション 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
NativeScript/angular#155 ·
NativeScript/angular の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
-
check:passed streams:add
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100