Frontend: Workaround for tap bug in paper-dialog

This commit is contained in:
Paulus Schoutsen 2015-06-09 20:53:50 -07:00
parent 6c1a309c40
commit ca373b5aa5
3 changed files with 9 additions and 13 deletions

View file

@ -1,2 +1,2 @@
""" DO NOT MODIFY. Auto-generated by build_frontend script """
VERSION = "e53215fa1416dbbc7819452b4f38689c"
VERSION = "1cc966bcef26a859d053bd5c46769a99"

View file

@ -22375,15 +22375,13 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
},
listeners: {
'tap': 'cardTapped',
// listening for click instead of tap as a work around
// https://github.com/PolymerElements/iron-overlay-behavior/issues/14
'click': 'cardTapped',
},
cardTapped: function() {
// Debounce wrapper added as workaround for bug
// https://github.com/PolymerElements/iron-overlay-behavior/issues/14
this.debounce('show-more-info-dialog', function() {
uiActions.showMoreInfoDialog(this.stateObj.entityId);
}, 1);
},
});
})();

View file

@ -37,15 +37,13 @@
},
listeners: {
'tap': 'cardTapped',
// listening for click instead of tap as a work around
// https://github.com/PolymerElements/iron-overlay-behavior/issues/14
'click': 'cardTapped',
},
cardTapped: function() {
// Debounce wrapper added as workaround for bug
// https://github.com/PolymerElements/iron-overlay-behavior/issues/14
this.debounce('show-more-info-dialog', function() {
uiActions.showMoreInfoDialog(this.stateObj.entityId);
}, 1);
},
});
})();