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

feat(Event.js,View.js): mousewheel事件适配左右滚动 #78

Closed
wants to merge 3 commits into from
Closed

feat(Event.js,View.js): mousewheel事件适配左右滚动 #78

wants to merge 3 commits into from

Conversation

suka233
Copy link
Contributor

@suka233 suka233 commented Mar 8, 2023

适配响应鼠标滚轮的左右事件

@wanglin2
Copy link
Owner

wanglin2 commented Mar 8, 2023

你好,你提交的代码有点问题的哈,
image
deltaX和wheelDeltaX的默认值是0,所以你这种写法会导致鼠标上下滚动dir的值始终是right,建议改成下图这样再提一次哈
image

@suka233
Copy link
Contributor Author

suka233 commented Mar 8, 2023

啊,见笑了。。不会调试npm包,这个pr也好像弄错了额。烦请作者大佬手动更新到下个版本内吧 T.T

@suka233 suka233 closed this Mar 8, 2023
@wanglin2
Copy link
Owner

wanglin2 commented Mar 8, 2023

好的

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

Successfully merging this pull request may close these issues.

None yet

2 participants