Pointer Events support?

I did some ZIM promotion. I met one chap who wants to make Maths tools for 'A' level. He was interested I think.

I've got permission to go to my old school this week and test on some boards too.

I'll write to BENQ, Promethean and SMART this week to test at least the Drag3.

1 Like

Thanks for everything that you're doing Dan, Chris and Ferudun!

3 Likes

Was poking around the CreateJS github repository and the second to last question was on Touch - referencing a pull request that was a fork that had some of our code in it. So just added our code to the latest CreateJS Touch.js code.

As far as I can tell, nothing changes outside of Touch. But if anyone is used to compiling createjs from the github files and can test the result, that might be prudent.

2 Likes

Just found a side effect of our Touch change.

window.addEventListener("mousedown", ()=>{
        zog("down")
})

no longer works on the canvas - nor does the mouseup. But mousemove does. It works when pressing off the canvas so probably should be fine for Frame tag mode for instance when there is other html around.

If you change it to "pointerdown" then it does work. And any mousedown events on ZIM objects work.

@Ferudun maybe you can see if you can find out why and perhaps a work around. Not sure if we need one...but maybe if a tag() mode is on the stage... and the html inside the tag mode is expecting mousedown and mouseup.

In the previous scenario, the window.addEventListener("mousedown") listener wasn't working on either iOS or Android. I think using pointerdown makes more sense. The old code also needed to use window.addEventListener("pointerdown").

Interesting - so all along on iOS and Android, the window mousedown did not work on the canvas. Okay... probably good then.

1 Like

BETT, and 25 feb. at SETT Belgium

2 Likes

I went into my old school yesterday. They were really helpful. I tested drag3 and one of my games with the old code on numerous boards including BENQ, Vestel, SMARTboard. All of them worked. I have videos of the Chrome version numbers if needed.

3 Likes

Gents, I just read your epic saga. Amazing research and field work. Thank you for putting in the months of effort! I am left with this question: what's the most compatible approach moving forward? Use pointer events only, and if so, is there a list of them?

1 Like

Thanks @josephd - good to hear from you.

ZIM 019 now uses our CreateJS 1.5. This favors pointer events but still accommodates older devices (pre 2018). So... just use mousedown, pressmove, pressup inside ZIM and it is being fed pointer events (most likely).

We are looking at perhaps going forward with a CreateJS that sheds some older tests, etc. That is over here: CreateJS Modernization?