alicelieutier / smoothScroll

A teeny tiny smooth scroll script with ease-in-out effect and no jQuery.
MIT License
537 stars 127 forks source link

The offset is not correct #41

Open qingwufengyang opened 7 years ago

qingwufengyang commented 7 years ago

goPosition (selector, flag, event) { event.preventDefault(); this.currentFlag = flag; var anchor = this.$el.querySelector(selector); smoothScroll(anchor, 500, null, this.$refs.scrollView); } I am using the context,but The offset is not correct

alicelieutier commented 6 years ago

Hi @qingwufengyang Can you give more details? What do you mean by the offset. Are you talking about a similar problem to #31 ? Or is it something different?