Skip to content

Instantly share code, notes, and snippets.

@odoe
Created January 11, 2016 19:02
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save odoe/7ab9a1da47167cb13bf7 to your computer and use it in GitHub Desktop.
const changeZoom$ = DOM.select('#zoom')
.events('input')
.map(({ target }) => target.value)
.startWith(4)
.map(value => {
view.zoom = value;
return value;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment