Replaced usage of connection with usage of branch for mouse down and
mouse up events.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>