The emotional component would be to look inward at why you feel compelled toward distraction when sitting down to write. Are you working on a project that challenges you on a deeper level? We tend to face a lot of inner resistance when challenged in ways we don’t feel capable of handling. I tend to “get distracted” when I need to narrate a particularly challenging character or story. This never really goes away but I think it gets easier the more we acknowledge it.
Anywho. Stop being gay and get writing!