禁用Chrome的两指向后/向前滑动 [英] Disable Chrome two fingers back/forward swipe

查看:111
本文介绍了禁用Chrome的两指向后/向前滑动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个页面,用户可以在其中水平滚动内容,在Chrome中,这种滚动操作有时会触发两根手指向后/向前滑动.

I have a page where the user can scroll horizontally the content, and in Chrome this scroll action sometimes triggers the two fingers back/forward swipe.

如何在不禁用水平滚动的情况下在特定页面中停用此Chrome的功能?

How can I deactivate this Chrome's function in a specific page, without disabling horizontal scroll?

推荐答案

经过很长时间,我发现了这一点:

After way too long, I discovered this:

html, body {
  overscroll-behavior-x: none;
}

这篇关于禁用Chrome的两指向后/向前滑动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆