wagerfield / parallax

Parallax Engine that reacts to the orientation of a smart device
http://wagerfield.github.io/parallax/
Other
16.46k stars 2.14k forks source link

chrome 31 BUG #54

Closed Adangs closed 10 years ago

Adangs commented 10 years ago

chrome 版本 31.0.1650.63 m

有些层会不显示掉,移上去才会出现。

Satariall commented 10 years ago

不是全世界都知道中國。寫英文 Not the whole world knows Chinese. Please write in English

Adangs commented 10 years ago

2014-01-17_163939

chrome 31++ 大分辨率下面有些层会消失了 Here are some great resolution layer will disappear

tulindesign commented 10 years ago

Yes, if your resolution more then 1378, like my - 1980px, some layers will disappear

look here - www.feelspace.ru/test This bug is only in Chrome (some days ago was updated)

martinfelcman commented 10 years ago

It's issue on Chrome 31+ and usually with using external monitor. Chrome load the images, but doesn't show them. Fixing by different using of html or css seems to be blind way. Any idea ow to fix it or when it will be fixed?

rodrigoavga commented 10 years ago

I'm experiencing the same bug. I haven't figured out any fix yet.

tulindesign commented 10 years ago

maybe try to use images parallax then div backgrounds? some one tried?

martinfelcman commented 10 years ago

We did. Chrome has problem to display and animate big or many images even if they are loaded.

On 6. 2. 2014, at 13:23, TimTulin notifications@github.com wrote:

maybe try to use images parallax then div backgrounds? some one tried?

— Reply to this email directly or view it on GitHub.

rodrigoavga commented 10 years ago

@TimTulin I tried both using img elements, and div elements with the images set as background-image. Same results. In fact the Parallax.js demo uses divs with background-image, as of last time I checked.

tulindesign commented 10 years ago

any idies?

amboy00 commented 10 years ago

Is this issue still happening in Chrome 32? I'm not experiencing the issue with this version.

tulindesign commented 10 years ago

yes, the problem live there ;)

nino051 commented 10 years ago

I had the same problem and found the solution. Disable hardware acceleration by disabling calls to accelerate function (lines 180 and 181 in jquery.parallax.js). Hopefully they'll fix the bug in Chrome.

tulindesign commented 10 years ago

@nino051 can u show me code? how to disable?

nino051 commented 10 years ago

take this file: https://raw.github.com/wagerfield/parallax/master/source/jquery.parallax.js put it in your web comment lines 180 and 181

tulindesign commented 10 years ago

@nino051 http://feelspace.ru/fs.ru/ same problem

d4mn commented 10 years ago

Yeah this doesn't help either....

nino051 commented 10 years ago

General idea is to disable 3d transformations

Try this too: chage line 152 Plugin.prototype.transform3DSupport = Plugin.prototype.transformSupport('3D'); to Plugin.prototype.transform3DSupport = null; //Plugin.prototype.transformSupport('3D');

d4mn commented 10 years ago

This doesn't help too.... problem is for big resolution only when you resize window all works fine

nino051 commented 10 years ago

Yes, I had that exact problem. And this fixed it.

tulindesign commented 10 years ago

@nino051

feelspace.ru/fs.ru

152 line have changed, no changes

d4mn commented 10 years ago

Hm maybe it's because i have overflow:hidden on my container element? Do you have this css on your elements?

tulindesign commented 10 years ago

@d4mn i have overflow too, look - feelspace.ru/fs.ru - if you delete overflow no changes

nino051 commented 10 years ago

@TimTulin you are still including old parallax.js in feelspace.ru/fs.ru line 368

d4mn commented 10 years ago

it seeems z-index fixed my problem i added higher z -index for elemnts which are overflowed by parallax elements

tulindesign commented 10 years ago

@nino051 doesn't work with your paralax.js

tulindesign commented 10 years ago

@nino051 give me your web site if u can, i want to look how it works on your site

nino051 commented 10 years ago

Sorry, I can't. Not mine to show.

On Feb 26, 2014 12:10 PM, "TimTulin" notifications@github.com wrote:

@nino051 give me your web site if u can, i want to look how it works on your site

— Reply to this email directly or view it on GitHub.

tulindesign commented 10 years ago

okey, doesn't work (

tulindesign commented 10 years ago

@nino051 help please....

tulindesign commented 10 years ago

@nino051 http://feelspace.ru/fs.ru/test/

nino051 commented 10 years ago

Don't know what else to tell you. Disable 3D acceleration in parallax plugin and it will work in Chrome.

tulindesign commented 10 years ago

@nino051 can u say me what file and what line on my site www.feelspace.ru/fs.ru/test

nino051 commented 10 years ago

I already did. Download this file: http://www.skretnica.com/jquery.parallax2.zip Unzip it and put in in you projects js folder. Use it in you project instead of "js/parallax/parallax.js"

tulindesign commented 10 years ago

Big ty

Отправлено из мобильной Почты Mail.Ru

Понедельник, 3 марта 2014 г., 3:00 +0600 от nino051 notifications@github.com: I already did. Download this file: http://www.skretnica.com/jquery.parallax2.zip Unzip it and put in in you projects js folder. Use it in you project instead of "js/parallax/parallax.js" — Reply to this email directly or view it on GitHub .

Adangs commented 10 years ago

Share. Thank you. liulundang@vip.qq.com

johnny-gruber commented 10 years ago

Hi

I also had this problem in my Project. This solution does't solve my problem. The solution was to minimize the layer-size. The plugin sets the size of each layer to width 100% and height 100%. I don't know how chrome handles its memory allocation and GPU processing, but the amount of 3 dimensional translated layer is to high for it. Chrome can't hande that and hides the layers. I changed the plugin and set the height to auto. The wrapper still has height and width of 100% but the elements inside are smaller. With this solution I can minimize the space which is rendered as 3 dimensional layer and chrome shows my layers correctly.

ZverushkaX commented 10 years ago

Have the same bug. First time i thinked, that is because of being several scenes. But when i read messages above - i solved problem. I fixed it, when resize scene size to smaller. It help me.

wagerfield commented 10 years ago

Hi Everyone,

I'm going to close this issue because it's evidently a Chrome bug and should be filed there rather than here. Parallax is just doing some light calculations and then attempts to use the best CSS transform technique available in your browser to translate some elements. I really don't want to factor in any logic to toggle hardware acceleration on large screens for certain browsers because it would require User Agent sniffing that will likely change with browser releases. I'm afraid you're going to have to tackle this problem in your own code.