iOS 9 Safari: changing an element to fixed position while scrolling won't paint until scroll stops

后端 未结 5 1387
情深已故
情深已故 2020-12-02 08:09

I\'ve been developing a site and taking advantage from the rather good jQuery Sticky Kit plugin. It operates by switching the position property to fixed

5条回答
  •  借酒劲吻你
    2020-12-02 09:07

    The only solution that I found to work correctly was to disable z-index translations on direct children of the fixed item, e.g.:

    .is-sticky > * {
        -webkit-transform: translateZ(0);
    }
    

提交回复
热议问题