Esri / arcgis-maps-sdk-swift-toolkit

Mapping components that will simplify your Swift app development with the ArcGIS Maps SDK for Swift.
https://developers.arcgis.com/swift
Apache License 2.0
28 stars 7 forks source link

Scalebar recalculates and resizes several times during a double-tap zoom operation #674

Open rolson opened 4 months ago

rolson commented 4 months ago

Scalebar recalculates and resizes several times during a double-tap zoom operation.

Ideally we would debounce it so that it only updates a max of every .25 seconds (250ms).

scalebar

rolson commented 4 months ago

Thanks to @dfeinzimer for pointing out that we did have debounce in the code before. It looks like it was removed because it wasn't rendering "fluidly". It would be good to reinvestigate that. Maybe the duration just needs to be dialed in.

dfeinzimer commented 1 week ago

Another optimization to look at is whether the onSizeChange modifier here is needed. At a quick look it may not be needed.