add touchdown elements
This commit is contained in:
parent
ade3862a6b
commit
969712c633
4 changed files with 24 additions and 5 deletions
|
|
@ -1,7 +1,6 @@
|
|||
<div
|
||||
class="bottom-bar row collapse">
|
||||
<div class="bottom-bar row collapse">
|
||||
<div class="medium-3 small-3 columns text-center bottombar-item" ng-repeat="item in index.menu">
|
||||
<a ng-click="index.setTab(item.link)" ng-class="{'active': index.tab == item.link}">
|
||||
<a ng-click="index.setTab(item.link)" ng-class="{'active': index.tab == item.link}" id="menu-{{item.link}}">
|
||||
<i class="size-36 {{item.icon}} db"></i>
|
||||
<div class="size-10 tu">
|
||||
{{item.title|translate}}
|
||||
|
|
@ -11,5 +10,5 @@
|
|||
</div>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
</section>
|
||||
|
||||
<section class="right-small" ng-show="!goBackToState">
|
||||
<a ng-show="!closeToHome && index.isComplete" class="p10"
|
||||
<a id="camera-icon" ng-show="!closeToHome && index.isComplete" class="p10"
|
||||
ng-click="topbar.openScanner()"><i class="fi-camera size-24"></i></a>
|
||||
<a ng-show="closeToHome" class="p10 ng-animate-disabled"
|
||||
ng-click="topbar.goHome(); closeToHome = null">
|
||||
|
|
|
|||
|
|
@ -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+ */
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue