@cryptotaxi247 / netdata-1 / commits / b5031f389

automatic switching of async_on_scroll is now reflected on the dashboard options

Costa Tsaousis (ktsaou) committed Oct 2, 2016 at 13:47 UTC b5031f389ddaece709501f7e854c6c8a1a802edf
1 file changed +1 -1
web/dashboard.js
+1 -1
@@ -561,7 +561,7 @@
561 NETDATA.onscroll_updater_above_threshold_count++;
562
563 if(NETDATA.onscroll_updater_above_threshold_count > 2 && NETDATA.onscroll_updater_above_threshold_count * 100 / NETDATA.onscroll_updater_count > 2) {
564 - NETDATA.options.current.async_on_scroll = true;
564 + NETDATA.setOption('async_on_scroll', true);
565 console.log('NETDATA: your browser is slow - enabling asynchronous onscroll event handler.');
566 }
567 }