← Back to Guide

Selection

The Monocle.Selection object performs two roles. Firstly, it polls components for any selected text. It fires a monocle:selection event whenever text is selected (and when that selection changes), and fires a monocle:deselection event whenever all text is deselected.

Secondly, it ensures that all text is deselected when a page turn interaction commences.