drag-scroll checkbox

This commit is contained in:
2026-06-28 17:19:04 -03:00
parent dcb672777d
commit 3beaa88fe9
5 changed files with 45 additions and 5 deletions

View File

@@ -32,6 +32,13 @@ class Plugin extends Base
'template' => 'plugins/ShrinkVertically/Asset/js/top-scrollbar.js',
));
}
// Optional: click-and-drag the board background to scroll horizontally.
if ((int) $this->configModel->get('shrink_vertically_drag_scroll', 0) === 1) {
$this->hook->on('template:layout:js', array(
'template' => 'plugins/ShrinkVertically/Asset/js/drag-scroll.js',
));
}
}
public function getPluginName()
@@ -51,7 +58,7 @@ class Plugin extends Base
public function getPluginVersion()
{
return '1.0.0';
return '1.1.0';
}
public function getPluginHomepage()