# Wierd selection on textarea after mouse is pressed and left stage

**URL:** <https://forum.kirupa.com/t/wierd-selection-on-textarea-after-mouse-is-pressed-and-left-stage/314884>\
**Category:** Uncategorized\
**Created:** [October 11, 2010, 9:53pm UTC](https://forum.kirupa.com/t/wierd-selection-on-textarea-after-mouse-is-pressed-and-left-stage/314884 "2010-10-11T21:53:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![patspats](https://avatars.discourse-cdn.com/v4/letter/p/b782af/32.png) [@patspats](https://forum.kirupa.com/u/patspats)\
**Post date:** [October 11, 2010, 9:53pm UTC](https://forum.kirupa.com/t/wierd-selection-on-textarea-after-mouse-is-pressed-and-left-stage/314884/1 "2010-10-11T21:53:22Z")

</div>

hi everyone…

I m using textarea. The problem is when i try to select a text and go out of stage and leave the mouse then again move mouse on text then selection of text will move with the mouse.

Here is what causes that:

```
* click somewhere on the text and drag the mouse in order to select the text
* then go out of the swf
* leave the mouse
* now move mouse on textarea

```

-\> the selection of text will move with the mouse…

How to stop this behavior???

I tried to implement mouseleave on stage but the problem is i m not able to detect mouseleave event when mouse is pressed and it leaves the stage.

Thanks for help in advance.

Regards
