소스 검색

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 {