diff options
Diffstat (limited to 'StoneIsland/platforms/android/assets/www/js/lib/etc/scroll.js')
| -rw-r--r-- | StoneIsland/platforms/android/assets/www/js/lib/etc/scroll.js | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/StoneIsland/platforms/android/assets/www/js/lib/etc/scroll.js b/StoneIsland/platforms/android/assets/www/js/lib/etc/scroll.js deleted file mode 100644 index 253921e1..00000000 --- a/StoneIsland/platforms/android/assets/www/js/lib/etc/scroll.js +++ /dev/null @@ -1,29 +0,0 @@ -// stub for native scroller when in voiceover mode -function NativeScroll(el) { - var Scroller = { - x: 0, - y: 0, - $el: $(el), - } - - Scroller.refresh = function(){} - Scroller.on = function(){} - Scroller.off = function(){} - - Scroller.scrollTo = function(x, y) { - Scroller.$el.scrollTop(y) - } - Scroller.scrollToElement = function(selector) { - var y = $(selector).offset().top - Scroller.$el.scrollTop(y) - } - - return Scroller -} - -function ScrollFactory (el, opt) { - if (accessibility.voiceOver) { - return NativeScroll(el) - } - return new IScroll(el, opt) -} |
