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

我甘特图内嵌了一个甘特图,遇到一些问题 #68

Open
guan-yabin opened this issue Jul 19, 2021 · 12 comments
Open

我甘特图内嵌了一个甘特图,遇到一些问题 #68

guan-yabin opened this issue Jul 19, 2021 · 12 comments

Comments

@guan-yabin
Copy link

我甘特图内嵌了一个甘特图,里面那个隐藏了滚动条,但是用笔记本触摸板滑动甘特图的时候,里面那个甘特图图也会有小小的滑动,就一个scale时间的宽度,还有就是没滑到最左边就退回上一页了

@w1301625107
Copy link
Owner

一个scale时间的宽度,还有就是没滑到最左边就退回上一页了

这个可能是浏览器的问题

里面的滑动可能是滑动时鼠标在内嵌的甘特图里?

@guan-yabin
Copy link
Author

对,滑动时,鼠标在内嵌甘特图里面

@guan-yabin
Copy link
Author

而且只有对应的那行会跟着滑动,滑动距离在一个scale时间的宽度

@w1301625107
Copy link
Owner

可能你需要把内嵌的甘特图的wheel 事件阻止继续上抛

@guan-yabin
Copy link
Author

好的,谢谢作者,我试一下

@guan-yabin
Copy link
Author

我试了阻止wheel事件,但是不生效,然后我加了一个蒙版,但是tip提示没有了

@guan-yabin
Copy link
Author

这个蒙版加了z-index,所以阻止了tip提示

@w1301625107
Copy link
Owner

tip 提示?

@guan-yabin
Copy link
Author

我加了一个antd的a-tooltip组件用来当文本提示,但是现在这个提示不起作用了

@w1301625107
Copy link
Owner

event.stopPropagation 不行吗?

@guan-yabin
Copy link
Author

抱歉,没能及时回复你,之前在做其他的,event.stopPropagation 可以,但是会导致的一个问题是他在内嵌甘特图上滚动时候整个页面都不滚动,连body的wheel事件都阻止了

@w1301625107
Copy link
Owner

em,那就动态的,鼠标点进去的时候再禁止

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

No branches or pull requests

2 participants