iOS: Scroll to element is scrolling the entire page. But doesnt find the element

scrollObject.put(“toVisible”, “true”);
scrollObject.put(“element”, elementID);
driver.executeScript(“mobile: scroll”, scrollObject);

The above code scrolls the entire page. but doesnt stop the scrolling at the place of element.

Appium version 1.14

Hi, have you had any luck on this?