cameronmcefee/plax

Effect stops after a few seconds

Opened this issue · 4 comments

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.

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

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

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?

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.