feat(@capacitor/screen-orientation): Orientation 'landscape' lock should use current held landscape if any
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 領域
- mobile-dev
調査の方向性
参照されている行の ios/Sources/ScreenOrientationPlugin/ScreenOrientation.swift と android/src/main/java/com/capacitorjs/plugins/screenorientation/ScreenOrientation.java にある向きのロック処理から始めます。デバイスを左右それぞれの横向きにした状態でリンク先の再現アプリを実行し、その後、横向きにロックすると iOS と Android の両方で現在保持している横向きの向きが維持されることを確認します。
索引モデルが issue の本文から書いたものです。
説明
Bug Report
Plugin(s)
@capacitor/screen-orientation 5.0.7
Capacitor Version
💊 Capacitor Doctor 💊
Latest Dependencies:
@capacitor/cli: 5.7.0
@capacitor/core: 5.7.0
@capacitor/android: 5.7.0
@capacitor/ios: 5.7.0
Installed Dependencies:
@capacitor/cli: 5.6.0
@capacitor/android: 5.7.0
@capacitor/core: 5.7.0
@capacitor/ios: 5.7.0
Platform(s)
Android and iOS
Current Behavior
When locking the screen orientation to 'landscape' it locks it to landscape left. Meaning that if I'm holding my phone in landscape right mode, the view rotates 180 degrees and locks there. (Same goes for android with landscape and landscape reverse).
You can see this is how its configured in the plugin code:
iOS: https://github.com/ionic-team/capacitor-plugins/blob/be3dd6889b5d147cd43ff17ae2cfdb936a146a34/screen-orientation/ios/Sources/ScreenOrientationPlugin/ScreenOrientation.swift#L87
Android: https://github.com/ionic-team/capacitor-plugins/blob/be3dd6889b5d147cd43ff17ae2cfdb936a146a34/screen-orientation/android/src/main/java/com/capacitorjs/plugins/screenorientation/ScreenOrientation.java#L62
Expected Behavior
If the phone is physically held in either landscape left or right (normal or reverse for android), when locking the orientation to 'landscape' it should lock the current orientation without rotating anything.
Code Reproduction
This simple app by WIStudent reproduces the problem: https://github.com/WIStudent/capacitor-screen-orientation-issue-reproduction-app/tree/main
Other Technical Details
Additional Context
- 主要言語
- Java
- スター
- 687
- フォーク
- 691
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ionic-team/capacitor-plugins のほかの issue
-
triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
ionic-team/capacitor-plugins#2616 ·
-
[@capacitor/app] iOS: 'Expression implicitly coerced from String? to Any' warning in getAppLanguageオープンtriage
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
ionic-team/capacitor-plugins#2604 ·
-
bug(network): Android networkStatusChange re-queries the active network inside callbacks and fires on every capability change対応中かも @kcjonson が 5 日前に担当しました。 オープンplatform: android
難易度 4/5 1〜2日 初心者へのやさしさ 25/100
ionic-team/capacitor-plugins#2621 ·
-
bug(network): iOS getStatus() returns the last reachability callback value instead of reading current flags対応中かも @kcjonson が 5 日前に担当しました。 オープンplatform: ios
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
ionic-team/capacitor-plugins#2620 ·
-
platform: android platform: ios
難易度 5/5 1週間以上 初心者へのやさしさ 24/100
ionic-team/capacitor-plugins#2619 ·
ionic-team/capacitor-plugins の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
strimzi/strimzi-kafka-operator#13328 · コメント 1 件 · リアクション 3 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
GoogleContainerTools/jib#4538 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
OpenLiberty/ci.maven#2137 ·
メンテナーはふだん 1 日以内に返信
-
Payer adjustment can exceed the balance left after copay and deductible, so claim payments add up to more than the charge対応中かも @DG47 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
synthetichealth/synthea#1772 ·
メンテナーはふだん 13 日以内に返信
-
bug dependencies
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100