-
Notifications
You must be signed in to change notification settings - Fork 753
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
Android drag image duplicates #481
Comments
Probably related to #469 |
will look at this as soon as I get another Android device :) |
Hi everyone, Was this resolved? Now I am also in this hole. Does anyone have a proper solution to fix it? |
Hey folks, I worked around this by first adding a "shim" layer with a big white rectangle (my background is white). My canvas size is 800x600, so you should adjust for your canvas size. Next, I added a separate layer for my draggable items. Hope this helps some poor soul. I wrestled with it for quite a while.
|
I was able to replicate this - I'm shocked that more people weren't complaining about this. Looking into it. |
Which version of android? This appears to be an Android bug. Stuff drawn on the canvas element isn't able to be cleared after the first draw: http://www.html5gamedevs.com/topic/114-canvasclearrect-bug-in-android-stock-browser/ |
okay, the work around here (for Android 4.1.1 and 4.1.2) is to not immediately draw onto the canvas. set a small timeout (50ms works for me) before adding layers to the stage. I believe that this is no longer an issue with recent versions of Android. |
I'm running Android 4.3, so it looks like the Android bug is still lingering. Thanks for the workaround, @ericdrowell. Much cleaner than my elaborate hack. |
Hi people,
this.stage.on('contentTouchmove', function(evt) {
selectedGroup.getLayer().moveToTop();
}
|
On Android when dragging an image the image duplicates.
I tried every possible solution but doesn't work.
Screenshot here:
http://d.pr/i/aieA
The text was updated successfully, but these errors were encountered: