Fix for mobile editor appearing at the wrong place when scrollHandler == window