mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
resistance: support negative strengths to indicate attractive snapping
This commit is contained in:
parent
57ea197e6c
commit
4181bb5335
2 changed files with 41 additions and 22 deletions
|
|
@ -196,15 +196,26 @@ this is for compatibility with Openbox.
|
|||
|
||||
## RESISTANCE
|
||||
|
||||
*<resistance><screenEdgeStrength>*
|
||||
Screen-edge strength is the distance, in pixels, past the edge of a
|
||||
screen the cursor must move before an interactive move or resize of a
|
||||
window will continue past the edge. Default is 20 pixels.
|
||||
|
||||
*<resistance><screenEdgeStrength>*++
|
||||
*<resistance><windowEdgeStrength>*
|
||||
Window-edge strength is the distance, in pixels, past the edge of any
|
||||
other window the cursor must move before an interactive move or resize
|
||||
of a window will continue past the edge. Default is 20 pixels.
|
||||
Resist interactive moves and resizes of a window across screen edges or
|
||||
the edges of any other window, respectively.
|
||||
|
||||
When an edge strength is positive, it indicates a distance, in pixels,
|
||||
that the cursor must move past any relevant encountered edge before an
|
||||
interactive move or resize operation will continue across that edge.
|
||||
|
||||
When the strength is negative, any interactive move or resize operation
|
||||
that brings the cursor within the absolute value of the specified
|
||||
distance, in pixels, from any relevant edge will snap the operation to
|
||||
that edge. Thus, as a move or resize approaches an edge, it will
|
||||
"attract" the cursor to that edge within the specified distance. As the
|
||||
move or resize continues past the edge, it will provide resistance until
|
||||
the cursor has moved beyond the distance.
|
||||
|
||||
A strength of zero disables the corresponding resistance effect.
|
||||
|
||||
The default value for both parameters is 20 pixels.
|
||||
|
||||
## FOCUS
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue