I have a strange problem with jittering while scrolling, the strangest thing is that this does not happens when previewing the project from the capx, only after exporting to html5 or node-webkit.
I am printing the fps to the browser log, when i walk to the edge of the screen the scene scrolls, when previewing fps remains on a steady 60, after export there are some small drops but nothing below 55, i don't know why, but still it's high enough, it shouldn't jitter.
The other strange thing is after i scroll a few times back and forth, it stops jitter and remains on a steady 60 fps.
Has anyone encountered this problem or have any suggestion on how to fix this?
Here is an online link of the game, press skip (to skip tutorial, then walk around in the house).
https://ea14537672eb44ada25c6048dea91f1 ... Z0M05MN0k/
oh and my scrolling event is:
lerp(scrollx, scrollToX, 1*dt)
lerp(scrolly, actor_joe.Y, 1*dt)
scrollToX is var i change when i need to push the camera around.
In this case when the actor is at a certain distance from the edge of the viewport.