By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,776 Members | 1,506 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,776 IT Pros & Developers. It's quick & easy.

Problem with DIV and mouse selection

P: n/a
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

Jul 23 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
VK
look for scrollTop property

P.S. Hi all!

Jul 23 '05 #2

P: n/a

VK wrote:
look for scrollTop property

P.S. Hi all!


Thank you, it's exactly what I was searching for! ;)

Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.