ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

Cursor remains stuck on original position after scroll

Open kunj77 opened this issue 10 years ago • 6 comments

I 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?

kunj77 avatar Jan 13 '16 09:01 kunj77

Can someone please help me this? I have been stuck since quite some time.

kunj77 avatar Jan 21 '16 11:01 kunj77

@kunj77 what version of Ionic?

mlynch avatar Feb 03 '16 23:02 mlynch

Version 1.7.12

kjt1212 avatar Feb 04 '16 07:02 kjt1212

@mlynch any update? were you able to reproduce this?

kjt1212 avatar Mar 01 '16 09:03 kjt1212

Hello! Thanks for opening an issue with us, we just need a little more info from you so that we can better help you with your issue. Would you mind posting a code sample, plunkr or codepen that we can use to reproduce your issue? Also, would you mind running ionic info and posting the output? Thanks again!

jgw96 avatar Mar 14 '16 16:03 jgw96

Hello! Thanks for opening an issue with us! Since it has been a little while since there was any activity on this issue i will be closing it, but feel free to reopen this issue if needed!

jgw96 avatar Mar 21 '16 18:03 jgw96