Adjusted Zoom Speed on Interstellar Map Panel #3967
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Current Implementation
The current zoom calculation, for the Interstellar Map Panel (IMP), is
1.5^(-1 * Mouse Wheel 'Clicks')
.Problem
This leaves the IMP feeling a little over-sensitive. Frequently I've found myself going from planetary-level to Milky Way-level in a single mouse wheel roll, as illustrated below:
IMP After 10 Wheel Clicks (From default starting scale)![image](https://private-user-images.githubusercontent.com/103902653/320129941-314f9a31-5863-443c-b163-59e24d4182c1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1OTAwODYsIm5iZiI6MTczOTU4OTc4NiwicGF0aCI6Ii8xMDM5MDI2NTMvMzIwMTI5OTQxLTMxNGY5YTMxLTU4NjMtNDQzYy1iMTYzLTU5ZTI0ZDQxODJjMS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNVQwMzIzMDZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00NzdmNmI3NjMxNGEwZDhjYTZhN2UzMmJiMzBjY2EwMzdkNmNjY2NhODg2YWFmZjNjMDY1YzA0YWQzMjJjZjRjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.b-8AT1-OYfuWxpO5uc1jF__kqa4YTc9mIosYCM3xLrQ)
Solution
I adjusted the zoom calculation to
1.175^(-1 * Mouse Wheel 'Clicks')
. This improves the feel of zooming in & out on the IMP, without excessively slowing either down.IMP After 10 Wheel Clicks (From default starting scale)![image](https://private-user-images.githubusercontent.com/103902653/320131265-04b3002c-a2c1-4182-b138-eedd493448a7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1OTAwODYsIm5iZiI6MTczOTU4OTc4NiwicGF0aCI6Ii8xMDM5MDI2NTMvMzIwMTMxMjY1LTA0YjMwMDJjLWEyYzEtNDE4Mi1iMTM4LWVlZGQ0OTM0NDhhNy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNVQwMzIzMDZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01NmIwMzU5YzFhODY1OTE2N2U0MmFkZWIyNDEyMGQwZjdhOWI0ZDE1NDE4ZDQ2YTYwYjkwODQ3NjUwOTQ2YWE0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.DioOPBT8qQ3TRxVZ9DIoOKV3rvpz_UFxQ1VpdXKmC0I)