Previous implementation of sheetTopWhileDragging relied on linear interpolation.
Due to numeric errors in floating point division sometimes the footer was +- 1 pixel up/down
from the accurate position, resulting in 1px flickering / "dancing".
This PR changes the way sheet top is computed to making use of the parent screen top property,
whenever possible.
Changes
Add test dedicated to formsheet
"Stabilize" footer
Test code and steps to reproduce
Added dedicated test TestFormSheet.
Checklist
[ ] Included code example that can be used to test this change
Description
Previous implementation of
sheetTopWhileDragging
relied on linear interpolation. Due to numeric errors in floating point division sometimes the footer was +- 1 pixel up/down from the accurate position, resulting in 1px flickering / "dancing".This PR changes the way sheet top is computed to making use of the parent screen
top
property, whenever possible.Changes
Test code and steps to reproduce
Added dedicated test
TestFormSheet
.Checklist