当前位置:网站首页>解决ionic4 使用hammerjs手势 press 事件,页面无法滚动问题
解决ionic4 使用hammerjs手势 press 事件,页面无法滚动问题
2022-06-27 23:18:00 【qq_39239110】
press事件可以实现长按屏幕的功能,但使用press事件可能会导致页面无法滚动,这时只需要加一个触摸屏属性,设置触摸方向为y轴方向就可以解决,例如:
<ion-card *ngFor="let item of orderList" (press)=" delete(item)" [style.touch-action]="'pan-y'">
</ion-card>
边栏推荐
- 基于可学习尺寸自适应分子亚结构的药物相互作用预测
- Ten thousand words long article understanding business intelligence (BI) | recommended collection
- Golang monkeys eat peaches and ask for the number of peaches on the first day
- 网页鼠标点击特效案例收集(直播间红心同理)
- 向excel中导入mysql中的数据表
- 【牛客讨论区】第四章:Redis
- [embedded foundation] memory (cache, ram, ROM, flash)
- Intensive reading of transformer thesis paragraph by paragraph
- 【MySQL】-【函数】
- Interview guide for data person | prepare these points to be prepared!
猜你喜欢

766. 托普利茨矩阵

Proe/creo product structure design - continuous research

Esxi based black Qunhui DSM 7.0.1 installation of VMware Tools

Flutter SliverAppBar全解析,你要的效果都在这了!

How to understand query, key and value in transformer

基于可学习尺寸自适应分子亚结构的药物相互作用预测

Neural network of zero basis multi map detailed map

【牛客討論區】第四章:Redis

Overview of drug discovery-01 overview of drug discovery

无人机专用滑环定制要求是什么
随机推荐
PV操作原语
联想拯救者R720如何组建双通道内存
电商转化率这么抽象,到底是个啥?
Set collection usage
What are the requirements for customizing the slip ring for UAV
Form forms and form elements (input, select, textarea, etc.)
如何阅读一篇论文
Maimai hot post: Why are big factories keen on making wheels?
Réseau neuronal pour la solution détaillée Multi - diagrammes de fondation zéro
[description] solution to JMeter garbled code
Adobe Premiere基础-常用的视频特效(裁剪,黑白,剪辑速度,镜像,镜头光晕)(十五)
【牛客讨论区】第四章:Redis
面试官问:JS的继承
205. 同构字符串
大尺寸导电滑环市场应用强度如何
N methods of data De duplication using SQL
Web mouse click special effects case collection (red heart in live broadcast room)
评价——灰色关联分析
数据人面试指南 | 准备好这几点做到有备无患!
Comprehensive evaluation of free, easy-to-use and powerful open source note taking software