mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2024-11-29 04:54:12 +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,8 +61,11 @@ var ripples = {
|
||||||
|
|
||||||
// Dirty fix for Firefox... seems like absolute elements inside <A> tags do not trigger the "click" event
|
// 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)) {
|
if (/firefox|crios|(^(?!.*chrome).*safari)|ip(ad|hone|od)/i.test(navigator.userAgent)) {
|
||||||
|
var button = e.which || e.button;
|
||||||
|
if (button == 1) {
|
||||||
$el.click();
|
$el.click();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// This function is called when the animation is finished
|
// This function is called when the animation is finished
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user