3 Replies Latest reply on Feb 6, 2008 12:11 PM by Flex harUI

    Problem selecting text in TextArea using mouse

    westmeadboy
      Here's a problem I've noticed with TextArea where I want to listen to changes in which part of the text is selected. I don't need to listen while the mouse is being dragged - just when the user has finished selecting the text (usually mouse up event).

      Try this:

      Use the mouse to select some text, but before releasing the mouse button, drag the pointer outside the text area and release the mouse button. Then, no click event (or mouse up event) is dispatched.

      I can detect the fact that the mouse pointer has been dragged outside by listening for the mouse out event. But this is no good because, even after this, moving the pointer (still outside the text area) can change the selection.