Repository navigation
v4.30.0 — Price scrolling and reset view
Added
-
Experimental
priceScrollonLiveChartpans the price window with a vertical
drag on the plot, which together withtimeScrollgives free X/Y panning. By
default (activation: "afterScale") it engages only once the range was
manually changed by a price-axis drag, a pinch or an earlier price pan, so an
untouched chart still lets a parentScrollViewscroll;"always"claims every
vertical drag. The pan writesviewport.range(the app's shared value when
supplied, otherwise private state), and the engine keeps a gesture-written
range active while following live, clamped tononNegative,maxValueand
minRange. Travel stopsmaxOvershootvisible spans past the fitted range.
Price-axis drags scale a panned window in place, a double tap on the axis
clears it, and so does asnapKeyormodechange. -
Experimental
resetButtononLiveChartfloats a reset-view control inside
the plot ("bottom-center"or"bottom-right") while the view differs from
the fitted live view: scrolled back, pinched, scaled or price-panned, with
showForchoosing which states count. The built-in button draws a glyph in
palette colors;renderResetButtonsupplies a custom visual while the chart
keeps placement, visibility, fade and the tap.onResetViewfires after a
reset. -
LiveChartHandle.resetView()on both charts returns to the fitted live view:
resetZoom()plusyRangeScaleback to 1 and, onLiveChart, a
gesture-written price range cleared, using thereturnToLiveglide. -
The Time scroll demo adds Price scroll (Off / After scale / Always) and
Reset view settings; a dedicated Reset view demo links directly to its
matching guide, and the Fomo perps showcase shows the reset button.
Fixed
- Price panning relinquishes ownership on app-written price bounds or a
replacementviewport.range, preserving those bounds during resets and
framing changes. onResetViewnow fires after reset overrides are applied on the UI thread
for imperative resets and accessibility activation, matching button taps.- The built-in reset button handles Android TalkBack activation. Custom-button
documentation includes the Android accessibility action alongside the iOS tap.