Only draw lattice if canvas is visible

This seems to fix the "neverending rotation" bug!

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