summaryrefslogtreecommitdiff
path: root/StoneIsland/platforms/ios/www/js/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'StoneIsland/platforms/ios/www/js/index.js')
-rwxr-xr-xStoneIsland/platforms/ios/www/js/index.js16
1 files changed, 14 insertions, 2 deletions
diff --git a/StoneIsland/platforms/ios/www/js/index.js b/StoneIsland/platforms/ios/www/js/index.js
index a8caa2e5..69a0a3e0 100755
--- a/StoneIsland/platforms/ios/www/js/index.js
+++ b/StoneIsland/platforms/ios/www/js/index.js
@@ -18,6 +18,9 @@ var app = (function(){
app.iscroll_options = {
mouseWheel: true,
scrollbars: true,
+ disablePointer: is_android ? true : false, // important to disable the pointer events that causes the issues
+ disableTouch: false, // false if you want the slider to be usable with touch devices
+ disableMouse: false // false if you want the slider to be usable with a mouse (desktop)
}
if (window.cordova) {
@@ -83,6 +86,15 @@ var app = (function(){
sim.fetch(app.api_ready)
var image = new Image
image.src = "./img/compass-logo.png"
+
+ MobileAccessibility.usePreferredTextZoom(true);
+ MobileAccessibility.getTextZoom(function getTextZoomCallback(textZoom) {
+ console.log('WebView text should be scaled to the preferred value ' + textZoom + '%')
+ if (textZoom > 100) {
+ app.accessible = true
+ $("html").addClass('accessible')
+ }
+ });
}
else {
app.api_ready()
@@ -90,8 +102,8 @@ var app = (function(){
}
app.api_ready = function(){
- if (is_iphone_x) {
- StatusBar.hide()
+ if (is_iphone_x && 'StatusBar' in window) {
+ window.StatusBar.hide()
}
app.view = null