fix: scroll issue in IE (#275)

* fix scroll issue in IE

* add meta tag for IE browser
This commit is contained in:
LaySent 2017-10-12 00:33:59 +08:00 committed by cinwell.li
commit 3e94cb6d76
3 changed files with 4 additions and 2 deletions

View file

@ -12,8 +12,8 @@ function scrollTo (el) {
if (scroller) scroller.stop()
enableScrollEvent = false
scroller = new Tweezer({
start: window.scrollY,
end: el.getBoundingClientRect().top + window.scrollY,
start: window.pageYOffset,
end: el.getBoundingClientRect().top + window.pageYOffset,
duration: 500
})
.on('tick', v => window.scrollTo(0, v))