Wheel gains two fields. held is the modifiers held at any point of the
running gesture: those of its wheel events, of key events between them,
and of a key tapped between a swipe's device end and the momentum run
that resumes it. modal is set when a wheel event of the gesture, or one
less than GESTURE_GAP before it began, arrived while a modal layer held
the wheel, in the same window or in another. A canvas can then leave
the rest of a turn begun under a dialog alone after the dialog closes,
and apply a rule such as Shift tapped mid-gesture.
End shares carry the held and modal values of the gesture they end.
A group or panel taken out of a column collapsed to icons kept the
column's collapsed state in its new column. A group dragged out of an
icon column by its grip floated as a strip with a flyout: the tab names
were cut off and a click on a tab did not switch the panel.
A new column, floating or docked, now stays collapsed only when it holds
the whole column it came from. When other panels stay behind, the new
column is expanded. Groups that join an existing column still keep the
source column's state, so their flyout widths are unchanged.
An icon dragged out of a collapsed column that keeps other panels now
starts a plain group drag, so the float preview and the window rect match
the expanded window that the drop makes.
Conflicts:
- ui-contract items/hooks.rs: rest_lead takes no placement here; main's
lead focus ring block is kept as main wrote it.
- ui-panels docking/mod.rs: main's FocusLook import kept; the memory::sub
import goes, since the dock no longer keeps pass frames in memory.
Follow-ups of the merge:
- MeasureCx::in_row (main) reads row_alone_room from the component's
scope env, as column_room does here.
- The split-handle focus ring trial (main) passes SplitArea's revision.
Reviewer finding on #3448: entries in `docs/contract-api.md` ended mid-sentence
(`size_ok` at "a `min` that is", `label_decimals`, and the `WindowSpec`,
`pressed_part` and `icon_ink_on` summaries). The generator lists the first line
of each doc comment only, so each of those doc comments now opens with a
complete sentence and keeps the rest below it: `size_ok` says on its second line
that a `min` that is not a number counts as one unit, `label_decimals` keeps its
cases in the paragraph under the summary, and `WindowSpec`'s first line carries
the whole "what it is for, who draws its frame, where it stands and whether it
has a taskbar entry" sentence.
Regenerated with the branch's own generator; a second run leaves the file byte
for byte as it was. Every entry this branch adds or changes now ends in a full
stop. The rest of the file keeps the entries the base leaves truncated (1273 of
4820 entry lines still end mid-sentence, none of them touched here): sweeping
those, or teaching the generator to join a doc's first sentence, is a separate
change.
The regeneration also picks up two entries the branch's merges added without
regenerating (`Action::restore`, and `floated`'s doc).
A group moved from a floating window or an expanded column into a column
collapsed to icons joined with no flyout width, so its flyout opened at the
column's width and the size the panel was resized to was lost.
The group now takes the width it was shown at as its flyout width: the
floating window's width or the expanded column's. A width equal to the
column's leaves the flyout following the column, and a group from another
collapsed column keeps its own flyout width.
A Ctrl+wheel on Windows and Linux reaches a taker as a zoom factor with no
scroll, and a touchpad's fractional Ctrl+wheel there becomes a pinch step. A
taker that steps a value by notches (VectorCraft's Quick Pen arc size) could
only count them by working the lines back out of the factor with egui's zoom
speed.
- `Wheel::zoom_lines`: the motion that reached the share as `zoom`, in wheel
lines: wheel events under the zoom modifier, measured before the user's
wheel speed, and the Ctrl+wheel steps folded into pinch steps. It travels
with the zoom share. A native pinch carries none.
- `Wheel::zoom_gathered`: the running gesture's `zoom_lines`, gathered the way
`gathered` gathers the scroll.
A floating panel keeps the docked place it left while it is closed, as long
as its hidden record, so after it reopens floating Dock Panel still returns
it there. Dock Panel restores that place with Action::Restore, built on
Layout::restore, so the panel comes back at the split size, sibling subtree
and group state it had instead of a halved frame.
The contract's generator lists a doc comment's first line, so both entries were
cut mid-sentence in docs/contract-api.md. Their first line is now a complete
sentence, and the rest says the same as before.
GridCursor::new raised each Fill column's share to the column's least
width but left the other Fill columns at their shares, so the row was
wider than the grid by the difference even when the least widths fit.
The Fill columns now share their room again: a column whose share by
weight is below its least takes its least, and the other Fill columns
share what is left by weight, down to their own least widths. The row
is wider than the grid only when the least widths together do not fit.
A grid whose shares already cover every least width is unchanged.
Workspace::apply_all recorded a floating panel's docked place only when the
panel had been docked in the layout before the action. A closed panel that
floated by Action::Float alone got no record, so Dock Panel had no place to
return it to. An app that wanted the old place had to open the panel first,
which made it the front tab of its old group before it floated.
Floating a hidden panel now records the location it would reopen at, the same
record that opening it and then floating it gives, without reopening it in its
old group. A panel that would reopen in a floating window gets no record, as a
panel floated from a floating window gets none.
Conflicts:
- value_drag/slider.rs: next added the TrackPress::OnPress follow-on-down path
and kept press_at reading current(); kept next's shape and our mixed-aware
press_at, so a press on a mixed slider still jumps to the pointer.
- tests/it/text/text_field.rs: both sides appended trials at the end; kept
ours (wheel over focused fields) and next's (keeps_on_escape) side by side.
Next covers none of this branch's changes.
The number reader accepted unit spellings made of letters and unit
symbols only, so the "/in" spelling of UnitKind::PerInch was never
registered. In a field that draws its unit apart from the number, a
typed "40/in" was then read as 40 divided by a quantity with no number,
and the field refused it.
A unit spelling may now start with one "/" followed by letters or unit
symbols. After a number, the reader takes such a spelling when the
letters after the "/" start it, so "40/in", "40 /in" and "40/IN" read
as 40 per inch. Any other "/" still divides: "80/2" is 40, and a field
without a "/in" spelling reads "/in" as before. Only UnitKind::PerInch
has a spelling with a "/", so no other field changes.
A bound control that sensed no wheel bit still got a gated vertical wheel
taker. A focused check box, switch or other value control that never reads
the wheel therefore took the wheel while the pointer was over it and dropped
it, so the form around it did not scroll.
Controls now take the wheel only through their sense. The new
Sense::WHEEL_Y_FOCUSED bit takes the vertical share only while focused or
armed, in any wheel scope. RangeSlider and ThumbRow, the two value controls
that read the wheel without sensing it, declare it, and the fallback taker
is gone.
A window that continues a panel's drag (DockArea::continue_move, a rail popup
floated by its tab) began its move as a title-row move, which docks only with
DockConfig::title_bar_docks. The handed-over press now says so through the
move: PressStart::handed (set by PressMachine::take_over) and
PlacementChange::continued on the layer move's reports. FloatingGroup starts
its window drag with GroupDrag::title_row only for a press on its title row,
and DockDropTarget refuses only those when title_bar_docks is off.