mapbox/wax — pull request #206 by aibram (2012-06-08 21:25:09+00:00)
Title: Don't trigger a click when dismissing a tooltip

Fixes #203

The onDown used to set onUp to be triggered on mouseup. The problem is that the close button doesn't handle mouseup, which means it won't cancel the event, causing a click event to be triggered (by onUp) when closing a tooltip. You wouldn't want to cancel a mouseup anyways, since that would mess with dragging (it would get stuck on down) as far as I can tell. Triggering onUp on a click should fix this problem.