centerOnScroll slows down the page scrolling

8 views
Skip to first unread message

Gustav

unread,
Feb 28, 2009, 5:05:35 PM2/28/09
to fancybox
centerOnScroll function is not usable right now because it's slows
down page scrolling after picture is closed (read: hided). After you
close the image and start to scroll the page, you can see "invisible
ghost image" scrolling along with page. It's because image wrapper and
overlay is hided not removed, it's pos calculation is still active and
this eats up browser's resources. This effect can be seen on slower
browsers IE6 & 7, in Fx if it's heavily loaded w/ plug-ins and even in
Opera sometimes.

Quick solution is to turn off centerOnScroll, which is on by default.
Even better solution is to rewrite the cleanup - start up procedures.

Janis

unread,
Mar 2, 2009, 12:01:58 PM3/2/09
to fancybox
Hi,
My mistake, I forgot to unbind all custom events. Although I don`t
think that invisible items are eating so many resources.

Janis
Reply all
Reply to author
Forward
0 new messages