The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Dynamic left attribute issue in IE

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #277449


    i have to fix a div on the x axis, without using position fixed, so i give the div the attribute ‘left’ to be the scrollLeft value whenever i drag the horizontal scroll


       $('.x').css  ( 'left' , $("#id").scrollLeft()); 

    this work perfect on chrome , but not on IE 11, the content of the div flickers everytime i scroll horizontal

    i think it has to do with the repaint that the browser has to do in order to render the element

    any idea on how to fix this?


    If you provide us with a small demo in CodePen so that we can see the issue firsthand, we might be able to suggest a fix.


    if you copy and paste the code of this jsfiddle in sublime for example and you open in IE browser , you will see the flicker effect of the content #HEADER

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.