Akryum / Akryum/vue-virtual-scroller

Implement scroll snaping

未关闭
#801 9 条评论 5 个 reaction 已指派 0 人 在 GitHub 查看
question
主要语言
TypeScript
星标
10.8k
派生
973
PR 合并指标
30 天内没有已合并 PR

描述

### Clear and concise description of the problem

When we scroll there is no snapping with this library. This lets the list scroll until decelerated, but many times for visual purposes, it would be nice that it decelerates with the object in the center of the screen.

### Suggested solution

Im not sure how to implement this with this library, but with regular html and css, its as simple as giving the parent div the

```css
scoll-snap-type: x;
```

and giving the child div
```
scroll-snap-align: center; // or the other options
```

### Alternative

_No response_

### Additional context

related issue. but dead.. no replies or comments for years...
https://github.com/Akryum/vue-virtual-scroller/issues/543

### Validations

- [X] Read the [docs](https://github.com/Akryum/vue-virtual-scroller/blob/master/packages/vue-virtual-scroller/README.md).
- [X] Check that there isn't [already an issue](https://github.com/Akryum/vue-virtual-scroller/issues) that reports the same bug to avoid creating a duplicate.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。