Stop rotating if the main canvas is not visible anymore

Does not have any effect right now.

Signed-off-by: Daniel Borchmann <daniel.borchmann@mailbox.tu-dresden.de>