reset delta on up event bug