I'd like to create a HTML5 canvas grid with a pinned first column (MS Excel has a similar option). Up to now I've been able to create the following: http://jsfiddle.net/dobbylan/AbnpE/
I have added Pan + Zoom functionality based on Phrogz's posting here: Zoom Canvas to Mouse Cursor
However I have the following difficulties with panning + zooming and pinned column:
- I'd like to prevent panning the canvas to the right further than the first column, i.e. the first column can at most be at the left border. (Same applies for the upper border and panning down)
- When zooming, there is a problem with scaling the first column, that I am unable to fix
Can someone please help me out on this?