Skip to content

New function smoothZoomAbs that uses an absolute zoom value #131

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 9, 2019

Conversation

TimoKunze
Copy link

I had the use case where I needed smooth scrolling with absolute zoom factors. I did not find a solution using the existing panzoom features, so I implemented a new function smoothZoomToAbs.

Timo Kunze added 2 commits September 2, 2019 19:56
… of a relative one.

(cherry picked from commit b92884b)
…re-request-smoothZoomToAbs

# Conflicts:
#	dist/panzoom.min.js
dist/panzoom.js Outdated
@@ -115,6 +115,7 @@ function createPanZoom(domElement, options) {
zoomTo: publicZoomTo,
zoomAbs: zoomAbs,
smoothZoom: smoothZoom,
smoothZoomToAbs: smoothZoomToAbs,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we change this to smoothZoomAbs() so that it is symmetrical to zoomAbs()?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, I've committed an update.

@TimoKunze TimoKunze changed the title New function smoothZoomToAbs that uses an absolute zoom value New function smoothZoomAbs that uses an absolute zoom value Sep 8, 2019
@anvaka anvaka merged commit a5c5ff1 into anvaka:master Sep 9, 2019
@anvaka
Copy link
Owner

anvaka commented Sep 9, 2019

Thank you! Published as v8.3.0

@TimoKunze TimoKunze deleted the feature-request-smoothZoomToAbs branch September 9, 2019 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants