gitawego / cordova-screenshot

screenshot plugin for cordova/phonegap
Other
211 stars 168 forks source link

Plugin slows css transform3d animations #52

Open skylerapp opened 9 years ago

skylerapp commented 9 years ago

Hi,

First of all, thank you for the plugin. My issue is in the title: the screenshot plugin works as advertised but after the plugin is called, my css transform3d animations are sluggish. I think that this is because of the way that the plugin works with 3d transforms.

Is there any way to clear the 3d transform memory after the plugin is called?

Thank you, Olivier

ghost commented 9 years ago

I had the same issue. I changed afterScreenUpdates in Screenshot.m to NO and this fixed my problem. I don't know why, but all css animations were cut (transitionEnd raised too early) if we wait for screen updates.
So to wait a fix for this issue, you can change the afterScreenUpdates to NO. I hope this will help you.