-
-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unresponsive on Android #58
Comments
Okay I found out why: I have about twenty cards in my app. Each card is composed by multiple DOM elements. No problem on iOS but laggy as hell on Android. So today I came up with the idea to only have three cards present in the DOM at the same time. That solved the problem. Maybe you are interested in supporting cards cards on mobiles @gajus? In this case you should implement something to remove cards (that are hidden under the stack) from the DOM until needed. Otherwise feel free to close this issue. |
I do not actively use and therefore maintain this library. But I review all the PRs and will happily accept PRs that improve performance. |
Our solution to this, which works really well - was 3 fold.
So now we get 60 fps on a stack of 100 on android. |
@optikalefx Thank you for your comment. Would you mind publishing your workaround? I'd appreciate to not invent the wheel twice :) |
You can see our fork https://github.com/ConnectAi/swing/tree/feature/prepend for the updates to prepend and removing the extra call. Our code is in the context of ember, so it's not useful on it's own.
|
@optikalefx Thank you very much for your effort! |
@optikalefx Any chance you can release/show any of your Ember integration? I plan to use in Ember as well. |
@edborden see above, is there something specific you wanted to see? That's the code I used above. |
On Android this script is very unresponsive. When you try to move a card around nothing happens until you remove your finger and try to move it again. And then it still is very laggy.
I tested it on Motorola Moto G 2. Generation with Android 5.x and Android 6.0.
The text was updated successfully, but these errors were encountered: