JohnMcLear / draw

A real time collaborative drawing tool using nodejs, socket.io & paper.js
Apache License 2.0
482 stars 158 forks source link

Double middle click to zoom to extent of canvas #207

Closed bytesnz closed 8 years ago

bytesnz commented 8 years ago

From @theoryshaw Another user pattern you see quick a bit with various architect/eng tools, is double clicking with the middle mouse button(or wheel) and it zooms to the extents of the contents.

Will need to calculate coverage of canvas before can do this

bytesnz commented 8 years ago

@theoryshaw: Does it zoom to contain just the contents, or does it zoom to include 0,0 and the contents?

theoryshaw commented 8 years ago

Hey Jack, usually it zooms out to the extents of the contents.

not 0,0

bytesnz commented 8 years ago

Ok. Thanks Ryan. Will make it work like that.

bytesnz commented 8 years ago

Completed in 86be08c. Will mark as completed once wrote tested a merged with develop.