fix: scroll issue in IE (#275)
* fix scroll issue in IE * add meta tag for IE browser
This commit is contained in:
parent
641e522779
commit
3e94cb6d76
3 changed files with 4 additions and 2 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue