check resize every 50ms, more smoother
authorWolfram Schneider <wosch@indexdata.dk>
Tue, 2 Jul 2013 12:47:26 +0000 (12:47 +0000)
committerWolfram Schneider <wosch@indexdata.dk>
Tue, 2 Jul 2013 12:47:26 +0000 (12:47 +0000)
experiments/spclient/mkws.js

index b58b945..9d6f28d 100644 (file)
@@ -585,7 +585,7 @@ function mkws_responsive_design () {
     $(window).resize( function(e) {
        if (timeout)
            clearTimeout(timeout);
-       timeout = setTimeout(function () { mkws_mobile_resize() }, 100);
+       timeout = setTimeout(function () { mkws_mobile_resize() }, 50);
     });
 
     // initial check after page load