I've made a tool (realruler.com) mostly for fun as my first attempt to code something relatively useful in JS.
I've also use w3css to make things responsive on various screen sizes.
The ruler in the upper part of the screen is basically coded in java script as a bunch of lines drawn on canvas. There's a special function which draws these lines along with ticks and everything else.
Now, let's just say I'd like to make this canvas "draggable" with mouse? Nothing fancy, just to be able to move it a bit up or down.
How to achieve that the easiest way?
Thanks a lot in advance.


Reply With Quote

Bookmarks