当前位置:网站首页>解决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>
边栏推荐
- 零基础多图详解图神经网络
- Intensive reading of transformer thesis paragraph by paragraph
- 联想拯救者R720如何组建双通道内存
- The research group of Xuyong and duanwenhui of Tsinghua University has developed an efficient and accurate first principles electronic structure deep learning method and program
- 自监督学习与药物发现
- 有监督、无监督与半监督学习
- 力扣今日题-522. 最长特殊序列
- 评价——秩和比综合评价
- Lodash realizes anti shake and throttling functions and native implementation
- Set集合用法
猜你喜欢

Solon 1.8.3 发布,云原生微服务开发框架

1382. 将二叉搜索树变平衡-常规方法

美团动态线程池实践思路已开源

Maimai hot post: Why are big factories keen on making wheels?

N methods of data De duplication using SQL

Meituan dynamic thread pool practice idea has been open source

Solve storage problems? WMS warehouse management system solution

零基础多图详解图神经网络

What is the e-commerce conversion rate so abstract?

.mp4视频测试地址
随机推荐
Lefse analyzes the local implementation method with all installation files and details to ensure success.
The research group of Xuyong and duanwenhui of Tsinghua University has developed an efficient and accurate first principles electronic structure deep learning method and program
How about the market application strength of large-size conductive slip rings
现在炒股网上开户安全吗?新手刚上路,求答案
Solon 1.8.3 release, cloud native microservice development framework
The contents of the latex table are left, middle and right
Evaluation - grey correlation analysis
Interview guide for data person | prepare these points to be prepared!
Interviewer asked: Inheritance of JS
From small to large, why do you always frown when talking about learning
SPuG - lightweight automatic operation and maintenance platform
Is it safe to open an account for mobile stocks? Where can I open an account for buying stocks?
centos8-操作记录-命令版-yum-redis-mysql-nacos-jdk
Li Kou today's question -522 Longest special sequence
Supervised, unsupervised and semi supervised learning
美团动态线程池实践思路已开源
1382. 将二叉搜索树变平衡-常规方法
Esxi based black Qunhui DSM 7.0.1 installation of VMware Tools
现在网上开股票账户安全吗?选择上市券商,最快8分钟开户成功
Adobe Premiere基础-常用的视频特效(边角定位,马赛克,模糊,锐化,手写工具,效果控件层级顺序)(十六)