rippleOut on click and touchend

This commit is contained in:
Takuya Matsuyama 2014-12-07 06:02:08 +09:00
parent e13ed0f9ab
commit 238d25244b

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") {