Widget will blink on changing size and position

I made a world map. I using the way that changing the size of the “mapScroller”(which is a ScaleBox) to zoom the map, and using the way that changing the position of the “mapScroller” to translate the map.
After zoom, I made the center of the map window same as before zoom, so this require both scale and move the mapScroller at the same time. However, this will make the widget blink.
I Googled a lot, but it didn’t give me the answer I was looking for. Anyone give some tips? Thanks