Fix fast click compatibility for WP10
This commit is contained in:
parent
fefa939bd4
commit
4e1faf28ea
1 changed files with 3 additions and 2 deletions
|
|
@ -318,12 +318,13 @@ angular.module('copayApp.directives')
|
||||||
templateUrl: 'views/includes/available-balance.html'
|
templateUrl: 'views/includes/available-balance.html'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.directive('fastClick', [ 'isCordova', '$timeout', function(isCordova, $timeout) {
|
.directive('fastClick', [ 'isCordova', '$timeout', 'isMobile', function(isCordova, $timeout, isMobile) {
|
||||||
return {
|
return {
|
||||||
scope: { someCtrlFn: '&callbackFn'},
|
scope: { someCtrlFn: '&callbackFn'},
|
||||||
link: function(scope, element, attrs) {
|
link: function(scope, element, attrs) {
|
||||||
|
|
||||||
if (!isCordova) {
|
var isWindowsPhoneApp = isMobile.Windows() && isCordova;
|
||||||
|
if (!isCordova || isWindowsPhoneApp) {
|
||||||
element.on('click', function(){
|
element.on('click', function(){
|
||||||
scope.someCtrlFn();
|
scope.someCtrlFn();
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue