简体   繁体   English

如何在IONIC3应用特定视图中禁用对触摸手势的识别?

[英]How to disable the recognition of touch gestures in IONIC3 app specific view?

I need to disable all touch gestures over some of the views of my app. 我需要禁用应用程序某些视图上的所有触摸手势。 The user can only interact with the app by an external keyboard when the app is running this views. 当应用运行此视图时,用户只能通过外部键盘与该应用进行交互。 Ionic Docs is not very clear about this, I only found this and this , but I don't know where and how should I use it. Ionic Docs对此并不十分清楚,我只是发现了这个这个 ,但是我不知道该在哪里以及如何使用它。 I couldn't find an example. 我找不到一个例子。

Has someone tried something similar? 有人尝试过类似的东西吗?

This is my development enviroment: 这是我的开发环境:

cli packages: cli软件包:

@ionic/cli-utils : 2.0.0-rc.4 ionic (Ionic CLI) : 4.0.0-rc.4 @ ionic / cli-utils:2.0.0-rc.4离子(Ionic CLI):4.0.0-rc.4

global packages: 全局软件包:

cordova (Cordova CLI) : 7.0.1 科尔多瓦(Cordova CLI):7.0.1

local packages: 本地套餐:

@ionic/app-scripts : 3.1.8 Cordova Platforms : android 6.2.3 @ ionic / app-scripts:3.1.8 Cordova平台:android 6.2.3
Ionic Framework : ionic-angular 3.9.2 离子框架:离子角3.9.2

System: 系统:

Android SDK Tools : 26.1.1 NodeJS : v9.3.0 npm Android SDK工具:26.1.1 NodeJS:v9.3.0 npm
: 5.5.1 OS : Linux 4.13 :5.5.1操作系统:Linux 4.13

Thanks for reading. 谢谢阅读。

不太确定,但是在这些字段上放置一个透明层(高度为100%,宽度为100%的div)如何​​处理,使您无法触摸任何东西,但应该可以通过键盘访问?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM