A touch controller for flexible scanning operation is disclosed. The touch controller can include circuitry configured to perform coarse detection scans, select a fine scan type based on results from the coarse detection scans, and perform a fine scan corresponding to the selected fine scan type. A fine mutual capacitance scan can be performed when conditions corresponding to a poorly grounded or ungrounded object or user are detected based on the coarse detection scans. A fine fully-bootstrapped self-capacitance scan can be performed when conditions corresponding to a well-grounded object or user are detected based on the coarse detection scans. A touch processor can be configured to sense touch events from the fine scan.