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

default all pan/zoom/resize options to "the good one" #100

Open
3 tasks
gordonwoodhull opened this issue Jan 2, 2019 · 0 comments
Open
3 tasks

default all pan/zoom/resize options to "the good one" #100

gordonwoodhull opened this issue Jan 2, 2019 · 0 comments

Comments

@gordonwoodhull
Copy link
Contributor

gordonwoodhull commented Jan 2, 2019

Now that we worked out how to detect size changes in the parent div and reset the scales appropriately, this feels like the right combination which almost everyone will want most of the time:

  • width/height 'auto' - yes it's tricky but it seems to be working. I have applied it in all the demos and a couple of other places
  • restrictPan true - when does the user want to be able to pan everything off the screen? the only issue here is it jerks back and forth a little right where the canvas gets to the same size as the div, maybe there could be a little tolerance
  • a higher-level fitStrategy higher-level zoom features #101

Features which seem so simple until you really look at them...

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

No branches or pull requests

1 participant