am building an application using ionic. I have a template with several input fields. When user hits on an input field I want to scroll the field to the top. I tried using
$ionicScrollDelegate.scrollTo(node.offsetLeft, node.offsetTop, true);
This scrolls the page up for me. However, it does not update the cursor position. The page scrolls up and the cursor remains stuck at the position before the scroll. If I start typing some text, the cursor moves to the desired input field and starts typing there. So I guess the cursor has not lost context but its position is not updated. Any ideas on what could work in this case?