From 28f30a54737b0bf1511a3a65b079af167cda0265 Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Wed, 13 Jul 2016 10:43:24 -0300 Subject: [PATCH] Fix scroll WP --- cordova/build.sh | 30 +++++++++++++-------------- src/css/mobile.css | 12 +++++------ src/js/services/fingerprintService.js | 2 +- 3 files changed, 22 insertions(+), 22 deletions(-) diff --git a/cordova/build.sh b/cordova/build.sh index 6a99d667b..c4c809b01 100755 --- a/cordova/build.sh +++ b/cordova/build.sh @@ -91,11 +91,26 @@ if [ ! -d $PROJECT ]; then if [ $CURRENT_OS == "IOS" ]; then cordova plugin add phonegap-plugin-push@1.5.3 checkOK + + cordova plugin add cordova-plugin-touch-id && cordova prepare + checkOK + + cordova plugin add cordova-plugin-transport-security + checkOK + + cordova plugin add cordova-ios-requires-fullscreen + checkOK + + cordova plugin add cordova-plugin-disable-bitcode + checkOK fi if [ $CURRENT_OS == "ANDROID" ]; then cordova plugin add phonegap-plugin-push@1.2.3 checkOK + + cordova plugin add cordova-plugin-android-fingerprint-auth + checkOK fi cordova plugin add cordova-plugin-globalization @@ -143,21 +158,6 @@ if [ ! -d $PROJECT ]; then cordova plugin add cordova-plugin-file checkOK - cordova plugin add cordova-plugin-touch-id && cordova prepare - checkOK - - cordova plugin add cordova-plugin-transport-security - checkOK - - cordova plugin add cordova-ios-requires-fullscreen - checkOK - - cordova plugin add cordova-plugin-disable-bitcode - checkOK - - cordova plugin add cordova-plugin-android-fingerprint-auth - checkOK - cordova plugin add cordova-plugin-screen-orientation checkOK diff --git a/src/css/mobile.css b/src/css/mobile.css index 22678c7b0..75fd55142 100644 --- a/src/css/mobile.css +++ b/src/css/mobile.css @@ -50,6 +50,9 @@ input { body { overflow: hidden; -ms-content-zooming: none; + /* removes 300ms in IE */ + -ms-touch-action: manipulation; /* IE10 */ + touch-action: manipulation; /* IE11+ */ } /* Fix IE 10 */ @@ -114,10 +117,7 @@ _:-ms-fullscreen, :root .main { min-zoom:1; } -body, html { - -ms-overflow-style: none !important; +.disable-user-behavior { + -ms-touch-action: cross-slide-y !important; + touch-action: cross-slide-y !important; } - -/* removes 300ms in IE */ --ms-touch-action: manipulation; /* IE10 / -touch-action: manipulation; /* IE11+ */ diff --git a/src/js/services/fingerprintService.js b/src/js/services/fingerprintService.js index dfc448878..39e937360 100644 --- a/src/js/services/fingerprintService.js +++ b/src/js/services/fingerprintService.js @@ -5,7 +5,7 @@ angular.module('copayApp.services').factory('fingerprintService', function($log, var _isAvailable = false; - if (platformInfo.isCordova) { + if (platformInfo.isCordova && !platformInfo.isWP) { window.plugins.touchid = window.plugins.touchid || {}; window.plugins.touchid.isAvailable( function(msg) {