From 5fbdfcec60911ef3790c5f00f88d5bdc81514e02 Mon Sep 17 00:00:00 2001 From: Federico Zivolo Date: Fri, 26 Sep 2014 13:38:56 +0200 Subject: [PATCH] fixed regex --- scripts/ripples.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ripples.js b/scripts/ripples.js index 7389d05b..6be4ce47 100644 --- a/scripts/ripples.js +++ b/scripts/ripples.js @@ -57,7 +57,7 @@ var ripples = { $ripple.setAttribute("style", $ripple.getAttribute("style") + ["-ms-" + scale,"-moz-" + scale,"-webkit-" + scale,scale].join(";")); // Dirty fix for Firefox... seems like absolute elements inside tags do not trigger the "click" event - if (/firefox|crios|safari|ip(ad|hone|od)/i.test(navigator.userAgent)) { + if (/firefox|crios|(^(?!.*chrome).*safari)|ip(ad|hone|od)/i.test(navigator.userAgent)) { $el.click(); }