CreateJS / EaselJS

The Easel Javascript library provides a full, hierarchical display list, a core interaction model, and helper classes to make working with the HTML5 Canvas element much easier.
http://createjs.com/
MIT License
8.11k stars 1.97k forks source link

Mouse events not working in mobile view #995

Closed DevelopSmith closed 5 years ago

DevelopSmith commented 5 years ago

I am build an Ionic v1 app and I am using EaselJS to draw some element on a canvas. The mouse events work fine if I am not in mobile view in Chrome but it doesn't work when I toggle the mobile view in Chrome nor when I build the app.

It works fine if I enable mobile view in Chrome but accessing the app using http://localhost:8100 but not working when I open it using http://192.168.1.5:8100

I tried to use: createjs.Touch.enable(stage)

it solved the problem but now I can scroll or zoom pinch in the canvas!

I think it is a security feature but it is making a problem.

DevelopSmith commented 5 years ago

Solved. Thanks to the answer of @Patrick-Seymour in #586