Markdown OKF-Schema Studio

Behaviour SwRS-MDOKFSTUDIO-TOOLBAR-030

The reading offset below the band settles without oscillation

When the band changes its height or the page updates it after a layout change, the extension SHALL keep the reading offset at least as large as the allowance for the configured depth and the largest band height seen at the current pane width, start the remembered height again when the width changes, measure and update at most three times, and cause at most two corrective scrolls after the end of scrolling input.

Part of StRS-MDOKFSTUDIO-TOOLBAR-004, outside the paths drawn on its map.

Scenarios 6

The situations the tests check; open one to read it.

nominalDeep allowance
Givendepth 6 and a band that shows one line
Whenthe reading offset is refreshed
Thenthe offset is at least the allowance for six lines
boundaryWidth changes
Givena pane resized to another width
Whenthe reading offset is refreshed
Thenthe remembered height is reset and measured again
boundaryLayout changes with the band
Givena band whose new height moves the content each time
Whenthe page updates the band
Thenit stops after three passes
boundarySame heading
Giventwo passes that find the same active heading
Whenthe page updates the band
Thenit stops at the second pass
nominalRandom scrolling stress run
Given180 random scroll steps of 40 to 220 px at 18 ms intervals, at depth 3
Whenthe input ends and 650 ms pass
Thenat most 2 programmatic scrolls happen after the input and the position changes by at most 2 px
boundaryScroll to the end
Giventhe document scrolled to its end
Whenthe reader keeps scrolling down
Thenthe position stays at the end and no corrective scroll fights the reader

Implemented in 1

Tested by 4