Problem with DIV and mouse selection

J

Jennifer

Hi all,
I made a page with a scrolling DIV (I change the "top" property to make
it scroll).
But if I try to select the text inside the DIV (longer than visible
page) and while selecting I make it scroll down, a mess happens.
In particular, the offsetHeight property keeps on retaining the "old"
top coordinate, but what I see is a div scrolled down after dragging
the mouse selection.
I found no other property to check that contains the new coords, so the
routine that scrolls the div uses the old coordinate and messes all up.
The same "div dragging undetectable movement" happens both in IE and
FF.

Can you help me? thx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top