Made various improvements to the workspaces module. (#17)
* Made workspace scrolling slower and more natural. * Fix workspace scrolling not working on single monitors: Fixes #8 * Fixed #15 and added configuration options to adjust workspace spacing and scrolling speed.
This commit is contained in:
@@ -6,18 +6,6 @@ export const BarItemBox = (child) => {
|
||||
return child.isVisible;
|
||||
};
|
||||
|
||||
if (Object.hasOwnProperty.call(child, "useBox") && child.useBox === true) {
|
||||
return Widget.Box({
|
||||
class_name: `bar_item_box_visible ${Object.hasOwnProperty.call(child, "boxClass") ? child.boxClass : ""}`,
|
||||
child: Widget.EventBox({
|
||||
class_name: `bar-event-box`,
|
||||
child: child.component,
|
||||
...child.props,
|
||||
}),
|
||||
visible: computeVisible(),
|
||||
});
|
||||
}
|
||||
|
||||
return Widget.Button({
|
||||
class_name: `bar_item_box_visible ${Object.hasOwnProperty.call(child, "boxClass") ? child.boxClass : ""}`,
|
||||
child: child.component,
|
||||
|
||||
Reference in New Issue
Block a user