Fix slider click producing NaN for Firefox.

Firefox (geko) has no event.offsetX, we have to calculate offset by
using target elements position and event.clientX.