rippleOut on click and touchend

This commit is contained in:
Takuya Matsuyama 2014-12-07 06:02:08 +09:00
parent c1c47c7e62
commit 71bb68967f

View File

@ -148,7 +148,7 @@
}, 500);
// On mouseup or on mouseleave, set the mousedown flag to "off" and try to destroy the ripple
element.on("mouseup mouseleave", function() {
element.on("mouseup mouseleave click touchend", function() {
ripple.data("mousedown", "off");
// If the transition "on" is finished then we can destroy the ripple with transition "out"
if (ripple.data("animating") == "off") {