panzoom
panzoom copied to clipboard
Fix: If "opts.focal" - calculate coordinates taking into account the planned Scale, and not just the calculated Scale
PR Checklist
Please review the guidelines for contributing to this repository.
- [x] I am requesting to pull a topic/feature/bugfix branch (right side). In other words, not main.
- [x] I have run
yarn test
against my changes and tests pass. - [ ] I have added tests to prove my fix is effective or my feature works. This can be done in the form of unit tests in
test/unit/
or a new or altered demo indemo/
. - [x] I have added or edited necessary types and generated documentation (
yarn docs
), or no docs changes are needed.
Description
The focal point zooming coordinates must be calculated taking into account both the calculated Scale and the planned Scale.
Fixes: #668