The Minicard dragging scrolls now the board at screen outside

This commit is contained in:
Martin Filser 2021-11-13 14:43:31 +01:00
parent c9071a74bc
commit 126c9ab853

View file

@ -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;
}
},
},
});