Small point to remember when making dragable clips or interface elements.

Filed under: Flash — Wrote by Campbell on Thursday, February 16th, 2006 @ 8:14 pm

So there you are, about to make a movieclip dragable, or perhaps your working in a javascript environment, about to make a div dragable. There is something I was never aware of that happens in windows which i have come to expect but never knew about. But more on that in a sec.

First I will  set the scene. A friend at work was showing me an Ajax, web 2….. Email interface and he was trying to click things but inadvertantly started draging them. You know how you zoom around the screen with your mouse and click on things…possibly before the mouse has come to a complete stand still. We this was happening in this email client. I wondered why I never really found this a problem with windows, but my friend soon explained.

In the registry there is a setting that defines how many pixels the mouse must move with the button down before Windows sends out the "Im draging something" message. By default it is four pixels. 

You wont believe how much of a diference this made to the experience. So when your next working on your dragManager class or the likes just pay a thought to how Windows (and possibly mac’s) handel things in the desktop environment and consider putting this in your app…to give the best user experience possible. 

Just thought this was something interesting I didnt know and should share. 

2 Comments   -
  • Comment by cosmin | February 16, 2006 @ 9:47 pm

    true true

  • Comment by Josh Tynjala | February 17, 2006 @ 12:15 pm

    I don’t think I’ve ever accidently dragged anything myself, but you make a good point. I know a lot of users, especially those that aren’t as experienced with computers tend to be very imprecise when using the mouse. I cringe when I see my parents trying to click, or heaven forbid… double click… on something.

Leave your comment

© Flex developer, Campbell Anderson, from New Zealand – xsive blog -