mirror of
https://github.com/youzan/vant.git
synced 2026-05-02 01:01:43 +08:00
[bugfix] Tabs: fix scroll position deviation when sticky (#3949)
This commit is contained in:
+1
-1
@@ -120,7 +120,7 @@ export default createComponent({
|
||||
|
||||
// scroll to correct position
|
||||
if (this.stickyFixed) {
|
||||
setRootScrollTop(getElementTop(this.$el) - this.offsetTop);
|
||||
setRootScrollTop(Math.ceil(getElementTop(this.$el) - this.offsetTop));
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user