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:
parent
ad22d42720
commit
679d7987c4
@ -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, {
|
||||||
|
@ -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 ? '' : email.encrypted ? '' : ''}}"></div>
|
<div class="encrypted" data-icon="{{email.encrypted && email.decrypted ? '' : email.encrypted ? '' : ''}}"></div>
|
||||||
|
Loading…
Reference in New Issue
Block a user