Tbh, before Roglic become dominant force he was quite the attacking rider. I remember a romandie where he and a young Bernal kept trading accelerations a long way form the finish.
It's just that for most of 2020/2019, it wasn't needed for him to attack from afar. Less incentive.
To be honest, in that Romandie Roglič was again on the defending side, he was in yellow. Bernal was the one who was attacking, Roglič was only following his attacks and tried only one attack towards the top of the climb. It was 4th stage of Romandie 2018.
It was in his next race, Tour de Slovenie 2018, where it was the last time Roglič had to attack because he was trailing in GC late in a stage race. He attacked Uran (who was the leader), Majka and a young Pogačar (still in his conti team) about 25km to go, got rid of them and won the stage and the GC (and he had the ITT to play with the next day, when he destroyed the competition).
Also let's not forget the first Vuelta he won, when the whole Jumbo team crashed on the first stage in the TTT and he lost a minute. He was on the attack the next day on a hilly stage with Quintana, Uran, Roche, Aru. The one stage where Quintana the sprinter was born.
In all the other stage races since 2018, he was in a leading position from the beginning, so he was always the one who had to defend. But in 2016 and 2017 he could attack also in the most unusual places. It's just that his sprint and his ITT have become such a powerful weapon it would be foolish not to use it.