# A conditional for mouseMove?

**URL:** <https://forum.kirupa.com/t/a-conditional-for-mousemove/282349>\
**Category:** Uncategorized\
**Created:** [February 20, 2009, 2:16pm UTC](https://forum.kirupa.com/t/a-conditional-for-mousemove/282349 "2009-02-20T14:16:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![somnamblst](https://avatars.discourse-cdn.com/v4/letter/s/a4c791/32.png) [@somnamblst](https://forum.kirupa.com/u/somnamblst)\
**Post date:** [February 20, 2009, 2:16pm UTC](https://forum.kirupa.com/t/a-conditional-for-mousemove/282349/1 "2009-02-20T14:16:46Z")

</div>

I modified a mouseDown event to use

mouseListener.onMouseMove = function() {  
moveGlow();  
};

But the glow animation restarts everytime the mouse moves.

Can someone point me towards a tutorial or a tip on using a conditional to detect the mouseMove so it doesn’t start over?
