L
Louis
I have a problem in doing a drag-and-drop using javascript in Firefox. I
can perform the operation when I can see the source and destination.
However if the destination is beyond the browser window, and when I drag
the mouse to the bottom of the browser window, the window will not
scroll. (I know when I reach the top as my y-coordinate will be 0).
In normal browser environment, when I drag the mouse and it reaches the
bottom or the top, the browser window automatically scrolls, if there is
room.
In my application, I use onmousemove to simulate the dragging, and the
browser window will not scroll when I reach the bottom (or the top).
My question is, how do I detect the size of the browser window? If I
know the absolute height of the browser window, then I can scroll the
window when I reach the bottom.
Thank you for your help.
can perform the operation when I can see the source and destination.
However if the destination is beyond the browser window, and when I drag
the mouse to the bottom of the browser window, the window will not
scroll. (I know when I reach the top as my y-coordinate will be 0).
In normal browser environment, when I drag the mouse and it reaches the
bottom or the top, the browser window automatically scrolls, if there is
room.
In my application, I use onmousemove to simulate the dragging, and the
browser window will not scroll when I reach the bottom (or the top).
My question is, how do I detect the size of the browser window? If I
know the absolute height of the browser window, then I can scroll the
window when I reach the bottom.
Thank you for your help.