fix #161: event delegation does not properly handle event.stopPropagation()