Преглед на файлове

HUE-7527 [assist] Prevent scroll on drag in the foreachVisible binding

When dragging from the assist the nicescroll plugin will scroll if it's not at the top and the foreachVisible binding might dispose the dragged element once it's out of view, this would destroy the jquery draggable and the drag helper is left frozen on the screen.
Johan Ahlen преди 8 години
родител
ревизия
84e1c8c
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      desktop/core/src/desktop/static/desktop/js/ko.hue-bindings.js

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

@@ -5286,7 +5286,8 @@
         if ($.fn.niceScroll && withNiceScroll) {
           hueUtils.initNiceScroll($container, {
             horizrailenabled: false,
-            nativeparentscrolling: false
+            nativeparentscrolling: false,
+            enablescrollonselection: false // foreachVisible might dispose of elements on scroll
           });
         }
       } else {