# Constraining 'startDrag' to a non vert or horiz line

**URL:** <https://forum.kirupa.com/t/constraining-startdrag-to-a-non-vert-or-horiz-line/291411>\
**Category:** Uncategorized\
**Created:** [June 29, 2009, 2:20pm UTC](https://forum.kirupa.com/t/constraining-startdrag-to-a-non-vert-or-horiz-line/291411 "2009-06-29T14:20:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![maschiltz](https://avatars.discourse-cdn.com/v4/letter/m/3ab097/32.png) [@maschiltz](https://forum.kirupa.com/u/maschiltz)\
**Post date:** [June 29, 2009, 2:20pm UTC](https://forum.kirupa.com/t/constraining-startdrag-to-a-non-vert-or-horiz-line/291411/1 "2009-06-29T14:20:45Z")

</div>

I need to know if there is any way to constrain the mouse movements on a startDrag to a line that is not going vertically or horizontally. I’m sure I’ll need to use some trig functions, and that’s fine, I just haven’t been able to find this done anywhere else.

thanks
