فهرست منبع

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 {