summaryrefslogtreecommitdiff
path: root/test/snapshots/cornerdrag.snap
blob: 0fbfe8a47e8a45671334b8ba82d5a2b37d201fae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# corner grabs: where a column edge crosses a pane edge, ONE drag moves both.
# Only the left column's h-splits make a corner — the v handle IS that column's
# last cell, so that is the only pane pair whose horizontal hint runs through
# it, and a corner therefore sits exactly where the two lines visibly cross.
# The layout is windowops': col 0 (x 0, w 50) holds panes 0 (rows 1-15) and 1
# (rows 16-29), col 1 holds one pane. The corner is col 49, row 15.
file w.txt x
start 31 100 -n 3
wait 8000 w.txt
stable 700 20000
# hover the corner: BOTH hints light, before anything is grabbed
motion 50 16
stable 400 5000
snap hover-corner
# CONTROL: the same vertical edge ten rows off the crossing is a plain edge.
# The identical diagonal drag moves the column and nothing else — pane 0 still
# ends on row 15, and the preview is one dash, not two
press left 50 7
drag left 30 25
stable 400 5000
snap edge-drag
release left 30 25
motion 45 25
stable 500 8000
snap edge-done
# the corner itself, now at col 0's new last col (29) and still row 15: drag it
# up and to the right and both boundaries follow the one mouse
press left 30 17
drag left 60 9
stable 400 5000
snap corner-drag
release left 60 9
motion 45 25
stable 500 8000
snap corner-done
# clamp interaction, half one: shove the corner off the right edge while
# staying mid-height. The column preview parks at its MINW stop; the row
# preview keeps tracking the mouse exactly
press left 60 9
drag left 99 21
stable 400 5000
snap clamp-x
# half two, the mirror: below the bottom at mid-width. Now the ROW preview
# parks (the lower pane keeps its tag row) and the COLUMN keeps tracking
drag left 60 31
stable 400 5000
snap clamp-y
release left 60 31
motion 45 25
stable 500 8000
snap clamp-done