Skip to content

Conversation

@Illyism
Copy link

@Illyism Illyism commented Apr 2, 2019

Adds a zoomToCenter function

  • zoomToCenter(1.2) Zooms in by 20%
  • zoomToCenter(0.8) Zooms out by 20%

I wanted more granular control than using the delta -1 or +1 and comparing by zoomSpeed. Especially if using this with a + or - button to zoom it makes sense to have it defined like this.

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.

1 participant