cameronmcefee / plax

JQuery powered parallaxing
http://www.cameronmcefee.com/plax
MIT License
2.28k stars 206 forks source link

Effect stops after a few seconds #30

Open Skoua opened 12 years ago

Skoua commented 12 years ago

When using in Firefox Nightly 17.0a1, the effect stops after a few seconds apparently for no reason. It does work in the latest stable Firefox though.

Skoua commented 12 years ago

Ok sorry I made the moveable() function to always return false and it solves the problem.

cameronmcefee commented 12 years ago

Yeah, the latest build is kind of weird. It fires off a bunch of motion events even if the computer is stationary. It appears that the events are really strong when the page first loads, then tapers off. The motion limiter suppresses the majority of the motion, but the first spike is usually intense enough to trigger the plax effects

jaredrethman commented 11 years ago

Skoua, i know its a long time ago. but which lines of code did you change. I seam to be having the same issue. It works with an older version of Plax. But the movement is a lot better with the newer version, before it stops. It works perfect on a desktop, the error only occurs when viewing it on my Galaxy tab.

Any ideas?

Skoua commented 11 years ago

Hey. It's been a while but I think you can change line 110 to return false; and it will do the trick but you'll lose mobile support as I understand the comments.