A restless state of mind that wanders away from an object while observing it is a mental state called restlessness (uddhacca). It flies away from the object. Due to restlessness the mind cannot remain very long with an object but often wanders elsewhere.