CapacitiveSensor library not working properly?

Can we have a link to the library please? Sometimes there are more than one library with the same function and name.

Your description sounds like some kind of auto-calibration rather than a bug. Perhaps the library is not designed (or it is not even feasible) to detect persistent states vs. changes of state.