summaryrefslogtreecommitdiff
path: root/StoneIsland/platforms/android/assets/www/js/lib/view/Scrollable.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2017-10-26 04:11:12 +0200
committerJules Laplace <julescarbon@gmail.com>2017-10-26 04:11:12 +0200
commit2dc213bc3e581fe324d2a2ede320f9a5d5db68c0 (patch)
tree388afa203b7c310330d3749a6ae93acf9f23dab0 /StoneIsland/platforms/android/assets/www/js/lib/view/Scrollable.js
parent70f3af46c5071866eac85b39c59cda6ebdd09ef7 (diff)
deploy 0.9.2
Diffstat (limited to 'StoneIsland/platforms/android/assets/www/js/lib/view/Scrollable.js')
-rwxr-xr-xStoneIsland/platforms/android/assets/www/js/lib/view/Scrollable.js44
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