Browse Source

The Minicard dragging scrolls now the board at screen outside

Martin Filser 3 năm trước cách đây
mục cha
commit
126c9ab853
1 tập tin đã thay đổi với 9 bổ sung0 xóa
  1. 9 0
      client/components/lists/list.js

+ 9 - 0
client/components/lists/list.js

@@ -129,6 +129,15 @@ BlazeComponent.extendComponent({
         { // scroll to the right
           boardCanvas.scrollLeft += 15;
         }
+        if (event.pageY > boardCanvas.offsetHeight - 10)
+        { // scroll to the bottom
+          boardCanvas.scrollTop += 15;
+        }
+        if (event.pageY < 10)
+        { // scroll to the top
+          boardCanvas.scrollTop -= 15;
+        }
+      },
       },
     });