Get element detail on canvas click