Added debounce on resize
This commit is contained in:
parent
5d02b5663b
commit
b8ab77a475
|
@ -1178,7 +1178,7 @@ function initCore() {
|
|||
}
|
||||
};
|
||||
|
||||
$(window).resize(toggleSnapperOnSize);
|
||||
$(window).resize(_.debounce(toggleSnapperOnSize, 250));
|
||||
|
||||
// initial call
|
||||
toggleSnapperOnSize();
|
||||
|
|
Loading…
Reference in New Issue