improve drag performance by avoid unnecessary drawing