handled moving through canvas borders