From 126c9ab853baa1f8e4597a49f0ed78af0389ba90 Mon Sep 17 00:00:00 2001 From: Martin Filser Date: Sat, 13 Nov 2021 14:43:31 +0100 Subject: [PATCH] The Minicard dragging scrolls now the board at screen outside --- client/components/lists/list.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/client/components/lists/list.js b/client/components/lists/list.js index f4819c9f7..59825eb00 100644 --- a/client/components/lists/list.js +++ b/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; + } + }, }, });