check for invalid pointer in determineDrag