diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-06-06 09:50:46 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-06-06 09:50:46 +0200 |
commit | b8ab77a475c4e0af6761396ad346b72e72a0aa6e (patch) | |
tree | eac2b368958c81afacb92465974f79866c14a7dc /core | |
parent | 5d02b5663b0642629c9cb77bb4cf5ad95564cc57 (diff) | |
download | nextcloud-server-b8ab77a475c4e0af6761396ad346b72e72a0aa6e.tar.gz nextcloud-server-b8ab77a475c4e0af6761396ad346b72e72a0aa6e.zip |
Added debounce on resize
Diffstat (limited to 'core')
-rw-r--r-- | core/js/js.js | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |