JAL-2840 fix wrapped scrolling when using cursor at a hidden region