Fixded bugs related to event listener loops.
Synced viewer from CMU-CREATE-Lab/timemachine-viewer@6e29c287ab7cb50f7f305b88901b33f9c31eff98