Only update the Gecko-side fixed layer margins when the view is fully visible or hidden to avoid jank.