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
The following browser test fails as of version 3.0.0.pre.5:
It shows that moveend is fired before load on a map that doesn't move.
This is due to the change to ResizeObserver as it fire an event right after subsribing to it.
See #2157 for more info.
test('No moveend before load',async()=>{letloadWasFirst=awaitpage.evaluate(()=>{constmap2=newmaplibregl.Map({container: 'map',// container idstyle: 'https://demotiles.maplibre.org/style.json',// style URLcenter: [10,10],// starting position [lng, lat]zoom: 10// starting zoom});returnnewPromise<boolean>((resolve,_reject)=>{map2.once('moveend',()=>resolve(false));map2.once('load',()=>resolve(true));});});expect(loadWasFirst).toBeTruthy();},20000);
The text was updated successfully, but these errors were encountered:
HarelM
changed the title
moveend is fired due to resizemoveend is fired without a reason due to resize observer
May 18, 2023
The following browser test fails as of version 3.0.0.pre.5:
It shows that moveend is fired before load on a map that doesn't move.
This is due to the change to
ResizeObserver
as it fire an event right after subsribing to it.See #2157 for more info.
The text was updated successfully, but these errors were encountered: