PDA

View Full Version : Javascript Mouse Control


pemdas21
04-19-2009, 12:47 PM
So here's the deal... I need to be able to control movement of the mouse so that it can only move in the x direction (no y) between 2 certain points when clicked. I have built a 360 degree view app (no comments on the pics, I just threw them up as a proof of concept) so that we could virtually rotate an object. Here is the link : http://cascadefire.com/pages/lightbox.html

Is there any way to restrict the movement of the mouse when the slider is clicked and held?

Thanks,
pemdas21

Chris T
04-19-2009, 12:56 PM
...
No? If that were possible with Javascript, there would be a million instances of it being done maliciously.

Tanktunker
04-19-2009, 01:09 PM
...
No? If that were possible with Javascript, there would be a million instances of it being done maliciously.
This is why alert and redirection don't exist hurf a durf durf.

eedok
04-19-2009, 01:16 PM
So here's the deal... I need to be able to control movement of the mouse so that it can only move in the x direction (no y) between 2 certain points when clicked. I have built a 360 degree view app (no comments on the pics, I just threw them up as a proof of concept) so that we could virtually rotate an object. Here is the link : http://cascadefire.com/pages/lightbox.html

Is there any way to restrict the movement of the mouse when the slider is clicked and held?

Thanks,
pemdas21
move the mouse up to the page instead of the control, so no matter where they let up the mouse it'll stop dragging.

pemdas21
04-19-2009, 01:36 PM
move the mouse up to the page instead of the control, so no matter where they let up the mouse it'll stop dragging.

And how would you suggest I do that. I understand your thought process, I just don't see an easy way of implementing it. Am I missing something simple here?

Thanks