[bugfix] Sticky: incorrect position when inside scroll container (#4055)
This commit is contained in:
+1
-1
@@ -62,7 +62,7 @@ export default createComponent({
|
|||||||
this.height = this.$el.offsetHeight;
|
this.height = this.$el.offsetHeight;
|
||||||
|
|
||||||
const { container, offsetTop } = this;
|
const { container, offsetTop } = this;
|
||||||
const scrollTop = getScrollTop(this.scroller);
|
const scrollTop = getScrollTop(window);
|
||||||
const topToPageTop = getElementTop(this.$el);
|
const topToPageTop = getElementTop(this.$el);
|
||||||
|
|
||||||
const emitScrollEvent = () => {
|
const emitScrollEvent = () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user