[bug-report] pc端 ScrollView 回不到最上或者最下方
lizehua-cn opened this issue · comments
李泽华 commented
Mand Mobile Version
2.5.13
Vue Version
2.7.14
Model / OS & Browser Info
windows chrome 109
Recurring Links
https://codesandbox.io/s/mand-mobile-quick-start-forked-txjkkn?file=/src/App.vue
Recurring Steps
用鼠标滑轮或者直接拖动滚动条后, 拖拽内容无法回到最上方
Expectant Behaviors
推荐添加滚动事件,把transform y从0,改为当前位置
Actual Behaviors
MeloHG commented
这个是因为页面的滚动条拉到最下面了。
如果想让 ScrollView 模拟页面级的滚动视窗,那么需要对页面设置高度为视窗高度,如 100vh,不让页面出现滚动条。