Added debounce on resize

This commit is contained in:
Vincent Petry 2014-06-06 09:50:46 +02:00
parent 5d02b5663b
commit b8ab77a475
1 changed files with 1 additions and 1 deletions

View File

@ -1178,7 +1178,7 @@ function initCore() {
}
};
$(window).resize(toggleSnapperOnSize);
$(window).resize(_.debounce(toggleSnapperOnSize, 250));
// initial call
toggleSnapperOnSize();