diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-09-03 15:18:23 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-09-03 15:18:23 +0200 |
| commit | 6f2af841c17ff4ed28d40121114825a40e8cf6fa (patch) | |
| tree | 5cc68e65c61e85ada066e45cf62805b60b24cf67 /StoneIsland/platforms/ios/www/js/index.js | |
| parent | bea0583348a3e7de85d4fed5e7fe206fb90fcc73 (diff) | |
updating rems
Diffstat (limited to 'StoneIsland/platforms/ios/www/js/index.js')
| -rwxr-xr-x | StoneIsland/platforms/ios/www/js/index.js | 16 |
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 |
