From b8ab77a475c4e0af6761396ad346b72e72a0aa6e Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Fri, 6 Jun 2014 09:50:46 +0200 Subject: Added debounce on resize --- core/js/js.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/js/js.js') diff --git a/core/js/js.js b/core/js/js.js index 52a3e69fc7a..d02dc6445f2 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -1178,7 +1178,7 @@ function initCore() { } }; - $(window).resize(toggleSnapperOnSize); + $(window).resize(_.debounce(toggleSnapperOnSize, 250)); // initial call toggleSnapperOnSize(); -- cgit v1.2.3