ukr.vitalinguist — How to say it in authentic Ukrainian

's attention mind thoughts etc wander
C2 verb — sb's attention/mind/thoughts, etc. wander

If someone's attention/mind, etc. wanders, they start thinking about one subject when they should be thinking about a different subject.