PlayMyCode / SkyBrush

pure-JS HTML5 embeddable painting application
http://www.studiofortress.com/skybrush
Other
60 stars 17 forks source link

make zoom drag an area to zoom #8

Open JosephLenton opened 11 years ago

JosephLenton commented 11 years ago

Build into the zoom control, a way to drag out an area to zoom, which then becomes full screen.

Zoom is already a draw command, so just measuring the difference between starting and ending the draw, is all that is needed. The draw area however should be larger than a minimum size, say 5x5 pixels.

This could use the existing selection tool, to avoid adding yet another selection view management object on top of that and marquee.