1
0
mirror of https://github.com/moparisthebest/mail synced 2025-01-30 22:50:17 -05:00

Change wo-touch to work on new webview

This commit is contained in:
Tankred Hase 2014-07-23 19:37:37 +02:00
parent ad22d42720
commit 679d7987c4
2 changed files with 3 additions and 4 deletions

View File

@ -417,12 +417,11 @@ define(function(require) {
elm.on('touchstart', function() { elm.on('touchstart', function() {
elm.addClass('active'); elm.addClass('active');
}); });
elm.on('touchleave touchcancel touchmove', function() { elm.on('touchleave touchcancel touchmove touchend', function() {
elm.removeClass('active'); elm.removeClass('active');
}); });
elm.on('touchend click', function(event) { elm.on('click', function(event) {
event.preventDefault();
elm.removeClass('active'); elm.removeClass('active');
scope.$apply(function() { scope.$apply(function() {
handler(scope, { handler(scope, {

View File

@ -18,7 +18,7 @@
<ul class="mail-list" infinite-scroll="displayMore()" <ul class="mail-list" infinite-scroll="displayMore()"
infinite-scroll-distance="1" infinite-scroll-parent="true"> infinite-scroll-distance="1" infinite-scroll-parent="true">
<li ng-class="{'mail-list-active': email === state.mailList.selected}" <li ng-class="{'mail-list-active': email === state.mailList.selected}"
ng-click="select(email)" wo-touch="select(email)"
ng-repeat="email in displayMessages"> ng-repeat="email in displayMessages">
<h3>{{email.from[0].name || email.from[0].address}}</h3> <h3>{{email.from[0].name || email.from[0].address}}</h3>
<div class="encrypted" data-icon="{{email.encrypted && email.decrypted ? '&#xe012;' : email.encrypted ? '&#xe009;' : ''}}"></div> <div class="encrypted" data-icon="{{email.encrypted && email.decrypted ? '&#xe012;' : email.encrypted ? '&#xe009;' : ''}}"></div>