浏览代码

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 {