Selaa lähdekoodia

[core] Avoid blinking on hueach scroll

Enrico Berti 10 vuotta sitten
vanhempi
commit
1f00416
1 muutettua tiedostoa jossa 1 lisäystä ja 4 poistoa
  1. 1 4
      desktop/core/src/desktop/static/desktop/js/ko.hue-bindings.js

+ 1 - 4
desktop/core/src/desktop/static/desktop/js/ko.hue-bindings.js

@@ -2755,10 +2755,7 @@
         ko.bindingHandlers.foreach.update(element, valueAccessorBuilder, allBindings, viewModel, bindingContext);
       }
 
-      $parent.parents(scrollable).on('scroll', function () {
-        window.clearTimeout(renderTimeout);
-        renderTimeout = window.setTimeout(render, 30);
-      });
+      $parent.parents(scrollable).on('scroll', render);
 
       if (considerStretching) {
         huePubSub.subscribe('assist.stretchDown', function () {