Skip to content
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

Add new maxBoundsResistance option #2224

Closed
wants to merge 1 commit into from

Conversation

kikuchan
Copy link

Obey maxBounds during dragging a map.

New option "maxBoundsResistance" (0.0 - 1.0) controls its behavior;
0.0: Classic (No effect during dragging)
0.8: Modern reaction
1.0: Strictly forbid to beyond the maxBounds

@mourner
Copy link
Member

mourner commented Nov 21, 2013

Nice idea! Thanks for the pull, I'll take a look. I was thinking of doing something similar, but need to check if it affects performance in any way (as drag happens often, so we should avoid lots of ops in predrag handlers if possible).

@IvanSanchez
Copy link
Member

Covered by #3510

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.

None yet

3 participants