Open gretzkiy opened 4 years ago
When calling patched scrolling methods without window context scrollTo(0, 0) getScrollBehavior throws an error because inputTarget is undefined.
scrollTo(0, 0)
getScrollBehavior
inputTarget
undefined
So the solution is to provide default window context when calling patched methods.
window
When calling patched scrolling methods without window context
scrollTo(0, 0)
getScrollBehavior
throws an error becauseinputTarget
isundefined
.So the solution is to provide default
window
context when calling patched methods.