panzoom icon indicating copy to clipboard operation
panzoom copied to clipboard

Fix: If "opts.focal" - calculate coordinates taking into account the planned Scale, and not just the calculated Scale

Open IgorA100 opened this issue 8 months ago • 0 comments

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 in demo/.
  • [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

IgorA100 avatar Jun 08 '24 21:06 IgorA100