Closed bytesnz closed 8 years ago
Probably difficult to do but can you also add some tests please? :)
Should be able to. Will have a think / look. Cheers.
Hmm. jquer.simulate.js doesn't have the capability needed for testing these events (middle click and touch events). Don't suppose you know of any libraries that do?
Added a zero button to take the canvas back to 0,0, so have a easy way of getting back to the start
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.
Implemented canvas panning and scaling. With mouse:
Added a zero button to take the canvas back to 0,0, so have a easy way of getting back to the start Added a coordinates status box so can keep track of where you are in the canvas and what the zoom factor is