if(hasFocus()&&(v==value()||(v>maximum()&&value()==maximum())||(v<minimum()&&value()==minimum()))){//solve a very annoying bug where the formula can collapse while editing. With this trick the formula is not lost until focus is lost.
if(hasFocus()&&(v==value()||(v>=maximum()&&value()==maximum())||(v<=minimum()&&value()==minimum()))){//solve a very annoying bug where the formula can collapse while editing. With this trick the formula is not lost until focus is lost.