mirror of
https://github.com/wekan/wekan.git
synced 2026-01-01 23:28:49 +01:00
The Minicard dragging scrolls now the board at screen outside
This commit is contained in:
parent
c9071a74bc
commit
126c9ab853
1 changed files with 9 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue