ソースを参照

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

+ 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 {