(scrolling: boolean, defaultScroll: number = 0)
| 39 | } |
| 40 | |
| 41 | public setScrolling(scrolling: boolean, defaultScroll: number = 0): void{ |
| 42 | // If the scrolling is different |
| 43 | if(this.scrolling != scrolling){ |
| 44 | this.scrolling = scrolling; |
| 45 | |
| 46 | // We initialize or stop scrolling, depending on the new scrolling value |
| 47 | if(this.scrolling) this.initScrolling(defaultScroll); |
| 48 | else this.stopScrolling(); |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | // Public getters |
| 53 | public getScroll(): number{ |
no test coverage detected