You may have seen JavaScript sliders before:
http://dev.jquery.com/view/tags/ui/1.5b2/demos/ui.slider.html
What I\'m envisioning is a circular slider. It would c
define a center point c current mouse point at m
in your mouse drag event handler, you'd have
var dx = m.x-c.x; var dy = m.y-c.y; var scale = radius/Math.sqrt(dx*dx+dy*dy); slider.x = dx*scale + c.x; slider.y = dy*scale + c.y;
radius would be some preset value of the slider,