Skip to content

add zoomToCenter public API#82

Open
Illyism wants to merge 1 commit into
anvaka:mainfrom
officient:zoomtoCenter
Open

add zoomToCenter public API#82
Illyism wants to merge 1 commit into
anvaka:mainfrom
officient:zoomtoCenter

Conversation

@Illyism
Copy link
Copy Markdown

@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