javascript - After using the tab key, can’t scroll to the top -


when using tab key or next button on device keyboard scroll seems out off sync.

use following steps reproduce this:

1.have form more fields fits screen tab through fields until field not visible gets focus.

2.now try reach the top of page mouse keeps scrolling wrong position.

to make easier forked existing codepen , edited show problem.
link: codepen

this happens on devices have. android 4.4.3 , android 5.0.1. tested @ latest v1.0.0-rc.0 off ionic.

i can't see codepen share solution used on application, should add $ionicscrolldelegate controller, here example:

angular.module('myapp').controller('myctrl', function($scope, $ionicscrolldelegate) {     ...      $ionicscrolldelegate.scrolltop();      ... } 

Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -