简体   繁体   中英

Page zoom slows down page rendering

I'm building a map viewer much like Google maps and i've run into an interesting performance problem when a page is zoomed (ie ctrl + OR ctrl -). It seems to affect all major browsers but Firefox has the worst problems as far as I can tell.

The problem is that when the page is zoomed panning by dragging the mouse seems really sluggish. This can even be seen on Google maps. Pan the map left and right and note how smooth it is. Now press ctrl+ (3 or 4 times). Now pan the map left and right in the same way. Notice the difference?

Does anyone know how I can minimize this problem?

We'll since the browser needs to rescale and compute all assets, there's no real way of "fixing" this behavior.

Every browser (and IE7+) uses scaling layout instead of resizing the text size when you hit CTRL+/-.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM