mirror of
https://github.com/labwc/labwc.git
synced 2026-02-11 04:27:51 -05:00
Support smooth scroll and horizontal scroll
note that this changes Scroll mousebinds from taking a "button" attribute to taking a "direction" attribute
This commit is contained in:
parent
6164ba73ff
commit
2b753a98b8
7 changed files with 119 additions and 20 deletions
|
|
@ -187,7 +187,7 @@ The rest of this man page describes configuration options.
|
|||
*<mouse><doubleClickTime>*
|
||||
Set double click time in milliseconds. Default is 500.
|
||||
|
||||
*<mouse><context name=""><mousebind button=""><action>*
|
||||
*<mouse><context name=""><mousebind button="" direction=""><action>*
|
||||
Multiple *<mousebind>* can exist within one *<context>*; and multiple
|
||||
*<action>* can exist within one *<mousebind>*
|
||||
|
||||
|
|
@ -219,8 +219,12 @@ The rest of this man page describes configuration options.
|
|||
- Left
|
||||
- Middle
|
||||
- Right
|
||||
- Up (scroll up)
|
||||
- Down (scroll down)
|
||||
|
||||
Supported scroll directions are:
|
||||
- Up
|
||||
- Down
|
||||
- Left
|
||||
- Right
|
||||
|
||||
Supported mouse actions include:
|
||||
- Press: Pressing the specified button down in the context.
|
||||
|
|
@ -229,6 +233,7 @@ The rest of this man page describes configuration options.
|
|||
- DoubleClick: Two presses within the doubleClickTime.
|
||||
- Drag: Pressing the button within the context, then moving the cursor
|
||||
- Scroll: Scrolling up or down in the context.
|
||||
Scroll actions must have a *direction* specified instead of *button*.
|
||||
|
||||
*<mouse><default />*
|
||||
Load default mousebinds. This is an addition to the openbox
|
||||
|
|
|
|||
|
|
@ -301,10 +301,10 @@
|
|||
<mousebind button="Middle" action="Press">
|
||||
<action name="ShowMenu"><menu>root-menu</menu></action>
|
||||
</mousebind>
|
||||
<mousebind button="Up" action="Scroll">
|
||||
<mousebind direction="Up" action="Scroll">
|
||||
<action name="GoToDesktop" to="left"/>
|
||||
</mousebind>
|
||||
<mousebind button="Down" action="Scroll">
|
||||
<mousebind direction="Down" action="Scroll">
|
||||
<action name="GoToDesktop" to="right"/>
|
||||
</mousebind>
|
||||
</context>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue