Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reduce wallpaper size #36

Open
wang-bin opened this issue Mar 28, 2013 · 2 comments
Open

reduce wallpaper size #36

wang-bin opened this issue Mar 28, 2013 · 2 comments

Comments

@wang-bin
Copy link

wallpaper's size is the whole page size. on some phone (i tested in webkit on HTC One X)it is slow to renderer the wallpaper. I have tried to set the wallpaper size the same as visible window size, the performance is better.

@hiroprotagonist
Copy link
Owner

Hi!
How did you do that?

@wang-bin
Copy link
Author

I create wallpaper in _init(), resize and show it in open(), hide it in close(). because the wallpaper's size is the not the whole page size, so i disable scrolling when wallpaper is visible $('body').css('overflow-y','hidden');, and enable scrolling when wallpaper is hidden $('body').css('overflow-y','scroll');.

I can make a patch later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants