fix background drag-scroll dying after card move; delegate to document, body marker; v1.1
This commit is contained in:
@@ -6,16 +6,17 @@
|
||||
* --td-column-gap value, so it is not in this static stylesheet.
|
||||
*
|
||||
* Below: click-and-drag horizontal scrolling (added by Asset/js/drag-scroll.js when the
|
||||
* "Drag the board background to scroll" setting is enabled). The .td-drag-scroll class is
|
||||
* set on #board-container by the script, so these rules are inert when disabled. A grab
|
||||
* "Drag the board background to scroll" setting is enabled). The .td-drag-scroll marker is
|
||||
* set on <body> by the script (not on #board-container, which Kanboard replaces on every
|
||||
* card move), so these rules are inert when disabled and survive board rebuilds. A grab
|
||||
* cursor advertises the empty background; cards keep the normal cursor since pressing them
|
||||
* does a card drag, not a pan.
|
||||
*/
|
||||
#board-container.td-drag-scroll {
|
||||
body.td-drag-scroll #board-container {
|
||||
cursor: grab;
|
||||
}
|
||||
|
||||
#board-container.td-drag-scroll .task-board {
|
||||
body.td-drag-scroll #board-container .task-board {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user