diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-08-31 22:37:03 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-08-31 22:37:03 +0200 |
| commit | d22d51a1ae49680015326857360eb699f31efced (patch) | |
| tree | 43ac5007de26848f516b37b863daeb77f86d97d2 /StoneIsland/platforms/android/assets/www/js/lib/view/Scrollable.js | |
| parent | a81d20bc18d002623fc24cdcea8df7eed6d85bc9 (diff) | |
NO MORE ANDROID BUILD
Diffstat (limited to 'StoneIsland/platforms/android/assets/www/js/lib/view/Scrollable.js')
| -rwxr-xr-x | StoneIsland/platforms/android/assets/www/js/lib/view/Scrollable.js | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/StoneIsland/platforms/android/assets/www/js/lib/view/Scrollable.js b/StoneIsland/platforms/android/assets/www/js/lib/view/Scrollable.js deleted file mode 100755 index 7f90929a..00000000 --- a/StoneIsland/platforms/android/assets/www/js/lib/view/Scrollable.js +++ /dev/null @@ -1,44 +0,0 @@ -var ScrollableView = View.extend({ - - events: { - "load img": "deferRefresh", - }, - - deferScrollToTop: function(){ - this.scrollPosition = 0 - setTimeout(this.scrollToTop.bind(this), 0) - }, - - scrollPosition: 0, - - resetScroll: function(){ - this.scrollPosition = 0 - }, - - saveScroll: function(){ - this.scrollPosition = this.scroller.y - }, - - restoreScroll: function(){ - setTimeout(function(){ - this.scroller.scrollTo(0, this.scrollPosition) - }.bind(this), 0) - }, - - refreshScroller: function(){ - this.scroller.refresh() - clearTimeout( this.scrollerRefreshTimeout ) - }, - - scrollerRefreshTimeout: null, - deferRefresh: function(){ - clearTimeout( this.scrollerRefreshTimeout ) - this.scrollerRefreshTimeout = setTimeout(this.refreshScroller.bind(this)) - }, - - scrollToTop: function(){ - this.scroller.refresh() - this.scroller.scrollTo(0, 0) - }, - -})
\ No newline at end of file |
