Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Cursor remains stuck on original position after scroll

$
0
0

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?


Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>