use generic digits.end instead of mouseup