You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 4, 2022. It is now read-only.
I'm submitting a ... (check one with "x")
[X] bug report
[ ] feature request
Current behavior:
Virtual Scroll stops updating the item position after crashing with TypeError: null is not an object (evaluating 'ev.scrollTop').
Expected behavior:
VirtualScroll scrollUpdate should verify if the event is null and not crash.
Steps to reproduce:
Have a scenario where multiple scrollTo might be callled.
Related code:
As far as I was able to debug it is caused by a null being emitted by the ScrollView in the setScrolling method. It happens because scrollTo starts the scroll loop when this.isScrolling still active with causes both isScrolling and is this.isScrolling to be true and a onScroll event to be emited with the null value, with causes VirtualScroll.scrollUpdate to crash when tries to access ev.scrollTop.
scrollUpdate(ev: ScrollEvent){// set the scroll top from the scroll eventthis._data.scrollTop=ev.scrollTop;// there is a queue system so that we can// spread out the work over multiple framesconstqueue=this._queue;if(queue===ScrollQueue.NoChanges){// no dom writes or change detection to take care ofthis._stepNoChanges();}elseif(queue===ScrollQueue.ChangeDetection){this._dom.write(()=>this._stepChangeDetection());}else{assert(queue===ScrollQueue.DomWrite,'queue value unexpected');// there are DOM writes we need to take care of in this framethis._dom.write(()=>this._stepDOMWrite());}}
Other information:
Ionic info:
ionic info
cli packages: (--REDACTED--)
@ionic/cli-utils : 1.19.2
ionic (Ionic CLI) : 3.20.0
global packages:
cordova (Cordova CLI) : 8.1.0
local packages:
@ionic/app-scripts : 3.2.0
Cordova Platforms : android 6.4.0
Ionic Framework : ionic-angular 3.9.2
System:
Android SDK Tools : 26.1.1
Node : v11.0.0
npm : 6.4.1
OS : Linux 4.18
Environment Variables:
ANDROID_HOME : /opt/android-sdk
Misc:
backend : pro
The text was updated successfully, but these errors were encountered:
I'm submitting a ... (check one with "x")
[X] bug report
[ ] feature request
Current behavior:
Virtual Scroll stops updating the item position after crashing with
TypeError: null is not an object (evaluating 'ev.scrollTop')
.Expected behavior:
VirtualScroll scrollUpdate should verify if the event is null and not crash.
Steps to reproduce:
Have a scenario where multiple scrollTo might be callled.
Related code:
As far as I was able to debug it is caused by a null being emitted by the
ScrollView
in thesetScrolling
method. It happens becausescrollTo
starts the scroll loop whenthis.isScrolling
still active with causes bothisScrolling
and isthis.isScrolling
to be true and aonScroll
event to be emited with the null value, with causesVirtualScroll.scrollUpdate
to crash when tries to accessev.scrollTop
.Other information:
Ionic info:
The text was updated successfully, but these errors were encountered: