add touchdown elements

This commit is contained in:
Matias Alejo Garcia 2015-04-28 15:02:27 -03:00
commit 969712c633
4 changed files with 24 additions and 5 deletions

View file

@ -774,3 +774,9 @@ textarea:focus
-webkit-transform: translate3d(-100%, 0, 0) !important;
transform: translate3d(-100%, 0, 0) !important;
}
/* removes 300ms in IE */
-ms-touch-action: manipulation; /* IE10 /
touch-action: manipulation; /* IE11+ */

View file

@ -506,6 +506,20 @@ angular
importLegacy: 12
};
// on touchdown elements
if (document) {
setTimeout(function() {
$log.debug('Binding touchstart elements...');
['menu-walletHome', 'menu-send', 'menu-receive', 'menu-history', 'camera-icon'].forEach(function(id) {
var e = document.getElementById(id);
if (e) e.addEventListener('touchstart', function() {
angular.element(e).triggerHandler('click');
});
})
}, 1000);
}
$rootScope.$on('$stateChangeSuccess', function() {
$rootScope.$emit('Animation/Disable');
});