-
Notifications
You must be signed in to change notification settings - Fork 85
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
Default scroll not working #27
Comments
你的内容是希望在body内吗? |
是的 |
能简单说下页面的dom结构吗?谢啦 |
<div id="app" ref="app">
<vue-drawer-layout>
<div class="drawer-content" slot="drawer">
<router-link>
<router-link>
</div>
<div slot="content" class="main-content">
<router-view/>
<PageFooter :mobile="true"/>
</div>
</vue-drawer-layout>
</div>
<style>
.main-content {
height: 100%;
overflow: auto;
-webkit-overflow-scrolling: touch;
}
</style> 原先有效代码大概是这样的结构。 其实问题已经解决了: 但是总觉得阻止了html的默认滚动事件 也就是body设置了height: 100%,有一些 hack。 只是一个建议和讨论结构修改的可行性,不是硬伤,还是感谢你贡献这么好用的插件 |
感谢反馈哈,当初是因为存在内容和抽屉同时移动的情况,考虑把内容使用slot内嵌在组件中,这块我考虑一下有没有可能把抽屉和内容分隔开,比如让调用方自行来滑动内容区域,再次感谢哈 |
Any update on this? |
是否有办法不在content内部滚动。
浏览器整屏截图功能 eventListener('scroll') 都会在此滚动方式下失效
The text was updated successfully, but these errors were encountered: