Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(calc): Improve zoom view-jumping
Previously, we got significant view jumps in calc by virtue of an incorrect center position. To fix this, I've melded together the old formula (from before commit d6f375c) with the new formula. I've gated this to calc as the old formula is calc specific. More testing will be needed to determine if there is any jumping in writer/impress. This old formula had some pitfalls, as it was made to deal with zooming from the top left of the screen rather than an arbitrary point. Particularly notably, the old formula doesn't deal with anything that is not on the edge of a cell. Therefore, there is still some view jumping, there's just likely to be less-of-it and it'll be a bit more consistent rather than having huge jumps every time on higher positions. This code still doesn't work in some cases, which I will continue to fix: - It doesn't affect tablets - I haven't confirmed that it works with different app.dpiScale Signed-off-by: Skyler Grey <[email protected]> Change-Id: I7127d8f0a3156ed9dfb04bdd5fb801c318531269
- Loading branch information