This repository was archived by the owner on Mar 13, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -36,10 +36,10 @@ const windowScrollSize = () =>
3636 )
3737
3838class ScrollElement {
39- static isWindow ( element : HTMLElement | Window ) : element is Window {
39+ static isWindow ( element : Element | Window ) : element is Window {
4040 return element === window
4141 }
42- constructor ( private element : HTMLElement | Window = window , private onScroll ?: ( ) => void ) {
42+ constructor ( private element : Element | Window = window , private onScroll ?: ( ) => void ) {
4343 this . element . addEventListener ( "scroll" , this . scroll )
4444 if ( ScrollElement . isWindow ( element ) ) {
4545 this . _size = windowSize
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ class Scroll {
3232 private element : ScrollElement
3333 private settings : ISettings
3434 private animationManager : AnimationManager
35- constructor ( element ?: HTMLElement | Window , settings : PartialSettings = { } ) {
35+ constructor ( element ?: Element | Window , settings : PartialSettings = { } ) {
3636 this . settings = defaultSettings
3737 this . updateSettings ( settings )
3838
You can’t perform that action at this time.
0 commit comments