Merge pull request #274 from noradaiko/master

rippleOut on click and touchend
This commit is contained in:
Fez Vrasta 2014-12-08 18:02:18 +01:00
commit 9f943a1545

View File

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