Fix event navigation in events with same timestamp

Closes #1071