From 240ccc8309566c56b5376102f8f517bafe9efe09 Mon Sep 17 00:00:00 2001 From: tophf Date: Fri, 8 Dec 2017 22:06:17 +0300 Subject: [PATCH] FF: actually prevent scrolling in focusNoScroll --- vendor-overwrites/colorpicker/colorpicker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor-overwrites/colorpicker/colorpicker.js b/vendor-overwrites/colorpicker/colorpicker.js index 4668406c..cb96cdce 100644 --- a/vendor-overwrites/colorpicker/colorpicker.js +++ b/vendor-overwrites/colorpicker/colorpicker.js @@ -915,7 +915,7 @@ el.focus({preventScroll: true}); el = null; if (window.scrollY !== y || window.scrollX !== x) { - window.scrollTo(x, y); + setTimeout(window.scrollTo, 0, x, y); } } }