pinch zoom troubles
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 32/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- android, javascript
- 领域
- mobile-dev, web-dev
调研方向
从 app/components/Home.vue 中描述的复现开始:使用一个空白的 Vue 应用,其中的 webview 标签指向一个可缩放的网站,然后比较 ns debug android 和 ns preview。检查报告中的 @nativescript/android 更新和 webview 配置。当触摸事件能够传递到网站,并且双指捏合缩放恢复正常时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):
- CLI: 8.8.2
- Cross-platform modules: 8.8.2
- Plugin(s):
"@akylas/nativescript-checkbox": "^2.0.5",
"@bradmartin/nativescript-urlhandler": "^2.0.1",
"@master.technology/permissions": "^2.0.1",
"@nativescript-community/ble": "^3.1.14",
"@nativescript-community/preferences": "^1.3.0",
"@nativescript-community/systemui": "^1.1.13",
"@nativescript-community/ui-collectionview": "^5.3.43",
"@nativescript-community/ui-document-picker": "^1.1.12",
"@nativescript-community/ui-material-bottomnavigationbar": "^7.0.37",
"@nativescript-community/ui-material-bottomsheet": "^7.0.37",
"@nativescript-community/ui-material-button": "^7.0.37",
"@nativescript-community/ui-material-progress": "^7.0.37",
"@nativescript-community/ui-share-file": "^1.2.5",
"@nativescript-community/ui-webview": "^1.4.11",
"@nativescript/appavailability": "^2.0.0",
"@nativescript/appversion": "^2.0.0",
"@nativescript/core": "~8.8.2",
"@nativescript/secure-storage": "^3.0.3",
"@nativescript/theme": "^3.0.2",
"@prabudevarrajan/filepicker": "^2.0.0",
"@sergeymell/nativescript-svg": "^1.1.2",
"buffer": "^6.0.3",
"crypto-browserify": "^3.12.0",
"debounce": "^1.2.1",
"http-auth-client": "^0.4.1",
"js-base64": "^3.7.7",
"js-pkce": "^1.2.1",
"nativescript-cscreenshot": "^1.2.1",
"nativescript-drop-down": "^6.0.2",
"nativescript-inappbrowser": "^3.2.0",
"nativescript-ui-listview": "^14.2.4",
"nativescript-videoplayer": "^5.0.1",
"nativescript-vue": "^2.9.3",
"url-search-params-polyfill": "^8.1.1"
Describe the bug
My app contains a webview (using @nativescript-community/ui-webview), which was zoomable with pinch-zoom until my last update of @nativescript/android, which with needed because of another problem with new Pixel phones.
Many/most touch events do not seem to reach the website in the webview anymore, pinch-zoom has become impossible.
Expected behavior
Using 2 fingers to zoom works as it always did.
Sample project
I'm currently trying to do a small sample project on nativescript preview, but I can't get the webview to show there.
Will update the issue here once I get a working sample on nativescript preview or play.
Does anyone know of a sample I could fork/test with?
If anyone wants to take a look at my current attempt: https://stackblitz.com/edit/nativescript-stackblitz-templates-fblndg?file=app%2Fcomponents%2FHome.vue
Additional context
I know that not all modules list above are in their newest versions, for a patch release of our product I wanted to make as few changes as possible. Updating all of them to their newest version did not change anything.
Update: I redid the same project locally and it works as intended with ns debug android. Then trying ns preview also does not show the webview in the preview app.
To recreate locally: create a blank vue app and replace the with the webview tag pointing to a zoomable site of your choice.
- 主要语言
- C++
- 星标
- 563
- 派生
- 144
- 平均合并
- 10 小时 46 分钟
- 30 天内合并 PR
- 14
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
NativeScript/android 的其他 Issue
-
难度 5/5 一周以上 新手友好度 38/100
NativeScript/android#2039 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 48/100
NativeScript/android#2024 ·
-
难度 5/5 一周以上 新手友好度 20/100
NativeScript/android#2020 ·
-
难度 5/5 一周以上 新手友好度 42/100
NativeScript/android#2019 ·
-
难度 4/5 3-5 天 新手友好度 55/100
NativeScript/android#1986 ·
查看 NativeScript/android 的全部 Issue
相似的 Issue
-
enhancement
难度 1/5 1 小时以内 新手友好度 88/100
QuantStack/git2cpp#187 ·
-
难度 2/5 1-3 小时 新手友好度 86/100
-
难度 2/5 1-3 小时 新手友好度 84/100
mlcommons/mobile_app_open#1182 ·
-
Needs-Triage
难度 2/5 1-3 小时 新手友好度 78/100
microsoft/winget-cli#6547 ·
-
难度 1/5 1 小时以内 新手友好度 90/100
AXERA-TECH/ax-llm#77 ·