improve performance by only drawing when interacting