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
Post a Comment