mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2024-11-29 13:04:14 +03:00
commit
01b59baf99
|
@ -109,7 +109,12 @@ var ripples = {
|
|||
bind("mouseover", withRipple, rippleInit);
|
||||
|
||||
// start ripple effect on mousedown
|
||||
bind("mousedown", ".ripple-wrapper", rippleStart);
|
||||
bind("mousedown", ".ripple-wrapper", function(e, $ripple) {
|
||||
// Start ripple only on left or middle mouse click
|
||||
if (e.which === 1 || e.which === 2) {
|
||||
rippleStart(e, $ripple);
|
||||
}
|
||||
});
|
||||
// if animation ends and user is not holding mouse then destroy the ripple
|
||||
bind("rippleEnd", ".ripple-wrapper .ripple", function(e, $ripple) {
|
||||
|
||||
|
|
|
@ -109,7 +109,12 @@ var ripples = {
|
|||
bind("mouseover", withRipple, rippleInit);
|
||||
|
||||
// start ripple effect on mousedown
|
||||
bind("mousedown", ".ripple-wrapper", rippleStart);
|
||||
bind("mousedown", ".ripple-wrapper", function(e, $ripple) {
|
||||
// Start ripple only on left or middle mouse click
|
||||
if (e.which === 1 || e.which === 2) {
|
||||
rippleStart(e, $ripple);
|
||||
}
|
||||
});
|
||||
// if animation ends and user is not holding mouse then destroy the ripple
|
||||
bind("rippleEnd", ".ripple-wrapper .ripple", function(e, $ripple) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user