How do I pan the contents of a div when the right mouse button is dragged?
- by Shaunwithanau
I need a cross browser way of capturing the right mouse click, preventing the default context menu and making it where when the user drags the mouse they can pan the contents of a div. This is largely similar to Google maps in that they will grip the contents and drag to see what they want.
No external libraries please.
I am already capturing…