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

CreateJS touch 'pressmove' event #1068

Open
denesh-globotix opened this issue Mar 24, 2022 · 0 comments
Open

CreateJS touch 'pressmove' event #1068

denesh-globotix opened this issue Mar 24, 2022 · 0 comments

Comments

@denesh-globotix
Copy link

denesh-globotix commented Mar 24, 2022

  • Thanks so much for this library, it has been really awesome to use such a powerful tool instead of interacting directly with the HTML5 canvas.

  • The following is a question. This library has worked amazingly well with mouse movements, but i am now trying to port the logic over to touch screen interfaces. Unfortunately, the pressmove touch event does not seem to be bubbling up properly. I can use stagemousedown and stagemouseup events though, so it's just the 'straffing' of the finger that is not captured at the moment

  • I found 2 similar reported issues this and this but they do not work for me

  • Describe whats happening (Include any relevant console errors, a Gist is preferred for longer errors):
    When trying to use the 'pressmove' event listener forthis.scene = new createjs.Stage(canvas)it does not seem to work. This is after setting createjs.Touch.enable(this.scene). This is part of ROS to visualise map images on a HTML5 canvas using the creatjs library. The ROS library is found here: https://github.com/RobotWebTools/ros2djs/blob/develop/build/ros2d.js

  • OS & Browser version (Please be specific) (Ex; Windows 10 Home, Chrome 62.0.3202.94):
    Version 96.0.4664.110 (Official Build) (64-bit)

  • Provide any extra details that will help us fix your issue. Including a link to a CodePen.io or JSFiddle.net example that shows the issue in isolation will greatly increase the chance of getting a quick response.

  • I have been trying with this example https://createjs.com/tutorials/Mouse%20Interaction/stage.html. Mouse interactions work but touch does not. I understand that this is part of the 'mouse interaction' page, but I have been trying to adapt the code locally to work with touch but to no avail

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