Modules

Correctly handle single-click vs double-click events, calling only the appropriate callback for the given event.