In Germany it is only legal to operate a touch screen while driving for essential functions with only a brief glance. For example, a judgement was handed down against a Tesla driver who tried to switch up the interval of the windscreen wiper via touchscreen and ran off the road in the process.
Source: https://www.burhoff.de/asp_weitere_beschluesse/inhalte/5723.... (in German)