acidb/mobiscroll — pull request #71 by zewt (2013-02-12 16:24:24+00:00)
Title: Only bind event listeners on document when needed.

Bind mousemove and mouseup only when actually dragging. Previously,
these events were bound at initialization, and left in place even when
no scroller was open. This causes event overhead for any page that loads
the script. Instead, bind these listeners only when actually dragging.

The "if(move)" checks in the event handlers can be removed, but to keep
the patch small and readable I haven't done that.