Hello all,
I'm trying to dynamically create a selection region by drawing a layer to match the mouse start, move, and end location.
What I have been doing is showing a layer (top,left = mouse x,y, and width,height start at 1) with a red background when the mouse down is clicked, and then, when the mouse is dragged, I update the width and height of the layer based on where the movse has been moved to - basically drawing a box as the users moves the mouse. When the mouse is released I stop the dragging and the "box" is finished.
This works great on the IE, but when I use netscape the box doesn't start drawing until I let go of the mouse. So you can't see the box being drawn. It seems as if the mouse down even won't let the mouse move even work until the mouse has been let up, which is too late by then...
Any ideas on what I'm missing? Any help is appreciated!
Thanks,
Darian.
I'm trying to dynamically create a selection region by drawing a layer to match the mouse start, move, and end location.
What I have been doing is showing a layer (top,left = mouse x,y, and width,height start at 1) with a red background when the mouse down is clicked, and then, when the mouse is dragged, I update the width and height of the layer based on where the movse has been moved to - basically drawing a box as the users moves the mouse. When the mouse is released I stop the dragging and the "box" is finished.
This works great on the IE, but when I use netscape the box doesn't start drawing until I let go of the mouse. So you can't see the box being drawn. It seems as if the mouse down even won't let the mouse move even work until the mouse has been let up, which is too late by then...
Any ideas on what I'm missing? Any help is appreciated!
Thanks,
Darian.