JavaScript30 day 27: Click and drag to scroll

Today I learned that it’s suprisingly difficult to create a horizontal drag and scroll menu! A bit of maths with pageX, offsetLeft and scrollLeft is how you achieve the end result.

The final code is on github.