Trigger event on canvas resize