Problem with DIV and mouse selection

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jennifer

    #1

    Problem with DIV and mouse selection

    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

  • VK

    #2
    Re: Problem with DIV and mouse selection

    look for scrollTop property

    P.S. Hi all!

    Comment

    • Jennifer

      #3
      Re: Problem with DIV and mouse selection


      VK wrote:[color=blue]
      > look for scrollTop property
      >
      > P.S. Hi all![/color]

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

      Comment

      Working...