ActionArea bug fix

calculate border equation and calculate valid indices after moving
polygon