Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

企业微信项目中页面不能滚动 #595

Closed
LuHugo opened this issue Jul 2, 2018 · 7 comments
Closed

企业微信项目中页面不能滚动 #595

LuHugo opened this issue Jul 2, 2018 · 7 comments
Assignees

Comments

@LuHugo
Copy link

LuHugo commented Jul 2, 2018

Version

1.12.0

Reproduction link

https://ustbhuangyi.github.io/better-scroll/#/examples/infinity/en

Steps to reproduce

在windows系统下最新版(版本:2.4.22.2024)的企业微信中无法滚动,也无法下拉、上拉。MacOS版本的企业微信无问题。

重现步骤:
在windows下的企业微信中打开官方的例子

What is expected?

可以滚轮滚动、拖动滚动、上拉、下拉等

What is actually happening?

无法滚动、无法拖动、无法下拉、无法下拉


官方有些例子可以滚轮滚动但是不能拖动滚动

@ustbhuangyi
Copy link
Owner

先定位一下是否支持 mousemove 和 touchmove 事件

@LuHugo
Copy link
Author

LuHugo commented Jul 2, 2018

@ustbhuangyi 企业微信应该是支持这两个事件的,因为打开iscroll的例子是没问题,可以用鼠标拖动滚动、下拉、上拉的。

在我们自己的项目中以前一直是正常的,更新了最新版企业微信就有问题了。

@LuHugo
Copy link
Author

LuHugo commented Jul 3, 2018

iscroll(5.2.0) 最新版本在windows系统下最新版本(2.4.22)的企业微信有问题,使用iscroll 5.1.3版本没问题。由于better-scroll参考了iscroll的设计实现,可能也是这个问题。

@ustbhuangyi
Copy link
Owner

我这没有环境,你那边能否调试一下源码,看看什么问题?

@LuHugo
Copy link
Author

LuHugo commented Jul 3, 2018

@ustbhuangyi
企业微信很难调试(基本上无法调试)-_-|

问题找到了
cubiq/iscroll#1229

需要强制开启touch模式,禁用poiner事件

This is the same question in 5.2.0;You can try to set options like this
disablePointer: true, // important to disable the pointer events that causes the issues
disableTouch: false, // false if you want the slider to be usable with touch devices
disableMouse: false // false if you want the slider to be usable with a mouse (desktop)
disable pointer event,force to use touch

@LuHugo LuHugo closed this as completed Jul 3, 2018
@ustbhuangyi
Copy link
Owner

你设置 disableMouse: false 是不是就可以滚动了?

@LuHugo
Copy link
Author

LuHugo commented Jul 3, 2018

上面的三个属性我都设置了,然后就可以滚动了。没有一个一个去试。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants