Skip to content

Commit 9548af7

Browse files
author
Federico Zivolo
committed
Fixed problem in RipplesJS
1 parent 64b8be3 commit 9548af7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

scripts/ripples.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,15 @@ var ripples = {
9696
// init RippleJS and start ripple effect on mousedown
9797
bind("mousedown", withRipple, rippleInit);
9898
// start ripple effect on mousedown
99-
bind("mousedown", ".ripple-wrapper, .ripple", rippleStart);
99+
bind("mousedown", ".ripple-wrapper, .ripple-wrapper .ripple", rippleStart);
100100
// if animation ends and user is not holding mouse then destroy the ripple
101-
bind("rippleEnd", ".ripple-wrapper, .ripple", function(e, $ripple) {
101+
bind("rippleEnd", ".ripple-wrapper, .ripple-wrapper .ripple", function(e, $ripple) {
102102
if (!mouseDown) {
103103
rippleOut($ripple);
104104
}
105105
});
106106
// Destroy ripple when mouse is not holded anymore if the ripple still exists
107-
bind("mouseup", ".ripple-wrapper, .ripple", function(e, $ripple) {
107+
bind("mouseup", ".ripple-wrapper, .ripple-wrapper .ripple", function(e, $ripple) {
108108
if ($ripple.dataset.animating != 1) {
109109
rippleOut($ripple);
110110
}

0 commit comments

Comments
 (0)