AhsanAyaz / AhsanAyaz/ngx-device-detector

`orientation` is not reliably set

オープン
#280 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
560
フォーク
106
PR マージ指標
30日以内にマージされた PR はありません

説明

**Describe the bug**
The value for `orientation` is not reliably set. When testing a page with Browserstack for example, the orientation remains as `portrait` regardless of the actual device orientation.

**To Reproduce**
Steps to reproduce the behavior:
1. Add an event listener to the window `resize` event
2. Read and `console.log` the current value for `orienation`
3. Push the branch to test with Browserstack (or use Browserstack Local) for example
4. Open developer tools
5. The log will always say `portrait` regardless of the actual device orientation

**Expected behavior**
The value for `orientation` should reliably be set in correspondence with the actual device orientation.

**Screenshots**
![Screenshot 2023-06-15 at 16 40 46](https://github.com/KoderLabs/ngx-device-detector/assets/7312890/be148662-33e5-45f3-aa7a-135159313359)
![Screenshot 2023-06-15 at 16 41 02](https://github.com/KoderLabs/ngx-device-detector/assets/7312890/7cfe9acc-5583-48b3-bf67-3027c82564b8)
![Screenshot 2023-06-15 at 16 41 16](https://github.com/KoderLabs/ngx-device-detector/assets/7312890/1fb23515-f54b-47ac-8c0f-d7e20c62d6a3)

**Desktop (please complete the following information):**
-> handheld devices only

**Smartphone (please complete the following information):**
- Device: iPhone14 Pro
- OS: iOS 16.3
- Browser: Safari

**Additional context**
Add any other context about the problem here.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。