v0.16.5
-
Fix race condition in
zng::task::SignalOnce. -
Event/command notify requested during a layout pass now all run before the next render pass.
- After a layout pass the app does an updates pass (unchanged) and then does an app events pass (new).
- See the
zng::appmodule docs for more details.
-
Fix command event properties notifying twice when set on the
Window!widget and raised by shortcut press. -
Refactor
UiNode::traceto work with widget and list nodes too. -
Refactor
actual_sizeand relatedactual_*properties to get the size on layout.- Before the size was sampled on render, now it is sampled before.
- This change means any state hooked to the actual size will now update before the new size is visible on the next frame.
-
Improve scroll widget's
ZOOM_TO_FIT_CMD.- Add
zng::scroll::cmd::ZoomToFitRequestfor configuring if the scale change is animated. - Add
Scroll::zoom_to_fit_modeproperty for configuring if smaller content scales up to fit.
- Add
-
Add
zng::mouse::ctrl_scrollcontextual property.- Also strongly associated with
Scroll!widget asScroll::ctrl_scroll. - When enabled inverts priority of mouse wheel gesture so that it zooms when no modifier is pressed and scrolls when
CTRLis pressed.
- Also strongly associated with