arcgis-maps-sdk-swift-toolkit icon indicating copy to clipboard operation
arcgis-maps-sdk-swift-toolkit copied to clipboard

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

Open rolson opened this issue 1 year ago • 2 comments

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 avatar Apr 09 '24 22:04 rolson

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.

rolson avatar Apr 09 '24 22:04 rolson

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

dfeinzimer avatar Aug 14 '24 16:08 dfeinzimer