Forums

Give help. Get help.

  • # October 10, 2018 at 7:13 am

    hello,

    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

    $(“#id”).scroll(function(){

       $('.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?

    # October 10, 2018 at 8:41 am

    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.

    # October 10, 2018 at 9:06 am

    http://jsfiddle.net/Starx/EzXub/263/

    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)

You must be logged in to reply to this topic.

icon-anchoricon-closeicon-emailicon-linkicon-logo-staricon-menuicon-nav-guideicon-searchicon-staricon-tag