We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
官方Demo即可稳定复现,打开渲染至当前DOM的抽屉,再打开基础抽屉,然后关闭基础抽屉就会发现body的滚动条没了,body上的样式没有被清除。 在二次封装时发现是动画结束事件未触发,封装添加的样式就也没能被清除。
渲染至当前DOM
基础抽屉
另外现在渲染至有滚动条的DOM中时,是将其scrollTop设置为0来保证能看到抽屉的,并且不会还原,只有在渲染至body时特殊处理了不影响滚动条,是否可以考虑使用getBoundingClientRect配合translateY来保证抽屉出现在可视区内呢?
getBoundingClientRect
translateY
The text was updated successfully, but these errors were encountered:
No branches or pull requests
官方Demo即可稳定复现,打开
渲染至当前DOM
的抽屉,再打开基础抽屉
,然后关闭基础抽屉
就会发现body的滚动条没了,body上的样式没有被清除。在二次封装时发现是动画结束事件未触发,封装添加的样式就也没能被清除。
另外现在渲染至有滚动条的DOM中时,是将其scrollTop设置为0来保证能看到抽屉的,并且不会还原,只有在渲染至body时特殊处理了不影响滚动条,是否可以考虑使用
getBoundingClientRect
配合translateY
来保证抽屉出现在可视区内呢?The text was updated successfully, but these errors were encountered: