mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2024-11-28 20:44:18 +03:00
Don't trigger click when the left mouse is not the one doing the clicking
This commit is contained in:
parent
bc800df47d
commit
225ba46ce0
|
@ -61,7 +61,10 @@ var ripples = {
|
|||
|
||||
// Dirty fix for Firefox... seems like absolute elements inside <A> tags do not trigger the "click" event
|
||||
if (/firefox|crios|(^(?!.*chrome).*safari)|ip(ad|hone|od)/i.test(navigator.userAgent)) {
|
||||
$el.click();
|
||||
var button = e.which || e.button;
|
||||
if (button == 1) {
|
||||
$el.click();
|
||||
}
|
||||
}
|
||||
|
||||
// This function is called when the animation is finished
|
||||
|
|
Loading…
Reference in New Issue
Block a user