Yes, Lal. In this nice sutta Buddha explains what is the cause for the defilement and purifications of beings.
https://suttacentral.net/sn22.60/en/bodhi
Just like you say in many posts.
Because there is also pleasure and not only suffering, we become captivated by that pleasure. By being captivated beings become defiled. And because there is also suffering in life beings experience a certain kind of revulsion (?, often translated like that) or turning away of what causes that suffering. Non-attractiveness. Because of this beings become dispassionate towards it and are purified. That is, in short, the mechanism presented.
It is hard not to be captivated by sense-pleasures, especially when you are unhappy. Then it is almost impossible. It is like being in a trap. Because one is unhappy one starts enjoying sense-pleasures to end that suffering. And by doing so one stays unhappy. The trap of addiction. Hook and bait.
Even when one sees the danger of this addictive pattern, it is still hard to end it, because of the unhappiness one does not want to experience.
When i am happy, sense-pleasures are clearly less captivating. I also think love plays a very great role. When one does not feel loved, appreciated, lonely, craving and thapa is probably there all the time. One wants to end that suffering by eating something nice, hearing something nice, seeing something nice. Brrr…this pattern is hard to break.
I also think boredom is a trigger. One can start grasping at sense-pleasures just out of boredom. One does not want to feel the suffering of boredom. But when one has some task to do, one does not even think about sense-pleasures. There is not even a longing for sense-pleasures at that moment, is my experience. Distraction or just having something to do is important.