Skip to content
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

MS Edge TouchScreen with AllowDefault - not letting content drag #1009

Open
danzen opened this issue Feb 9, 2019 · 1 comment
Open

MS Edge TouchScreen with AllowDefault - not letting content drag #1009

danzen opened this issue Feb 9, 2019 · 1 comment

Comments

@danzen
Copy link
Contributor

danzen commented Feb 9, 2019

On Edge and IE touchscreen, we need a way that the canvas can be swiped to move the page and yet, the objects on the canvas can be dragged as expected. This is usually done with allowDefault true on the createjs.Touch.enable() - the third parameter. And then in Chrome and FF, we can swap this as we try and drag something. But in Edge and IE, the allowDefault sets the touchAction (and msTouchAction) style of the canvas to none (so it will swipe the canvas as a picture?) but this stops interactivity on the canvas and I can't figure out a way to get it back in one dragging motion.

Here is a CreateJS test: https://zimjs.com/explore/createjstouch.html

Note - for Chrome to interact properly with touch screens on Edge see this issue: #997 so we are testing with a modified CreateJS - but the same issue is there with the old CreateJS.

Also note that in Firefox... our modified CreateJS as per issue 997 does not seem to let the canvas drag even with the allowDefault - so not sure if something got messed up there - it works fine in the ZIM test on Firefox https://zimjs.com/explore/zimtouch.html and yet, the same CreateJS is being called.

Safari had an issue a while back... #898 not testing that here in this case.

@ghost
Copy link

ghost commented Feb 19, 2019

This MS Edge issue really spoiling drag and drop in a couple of educational games of mine. I'd really like to implement more drag and drop games as it's such a natural gesture for young children on touch screens, but this issue is putting me off.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant