Pointer Events support?

Okay - could you please ask the teacher to go to

https://zimjs.com/touch.html

And send us a picture of the results. They look something like this:

It would be interesting to see on a working board and a non-working board.

Hello. I think the problem here is related to the touch logic of the ViewSonic interactive whiteboard. Because the zim code works flawlessly in current Chrome browsers.

However, the create.js touch code doesn't support listeners like pointerdown and pointermove. When I asked the AI ​​about this problem, it wrote that such problems occur with ViewSonic whiteboards.

My idea is to make create.js touch.js compatible with all inputs and pointerevents. In our code, the ViewSonic whiteboard detects the Chrome browser, but the touch logic is different. I don't fully understand it, but what I'm thinking is: The interactive whiteboard has a Windows system, Chrome browser, but the touch logic is like iOS or Android (of course, this is an analogy; I don't know the technical details). Therefore, the most definitive solution is to convert the touch.js part to pointerevents. I will get suggestions from the AI ​​for this and share them with you.

1 Like

I think this approach makes sense to establish what is going on. I've sent this out to a few schools.

Thank you for all your efforts.

Yes. Ferudun sent us possible fixes - thanks, Ferudun. I think getting the data and trying to fix it with as little change as possible would be best - but will take a look at the AI solution if we are stumped. Chris, let us know when you get an answer back.

1 Like

Chris,

The touch.html test file that I sent you will show us various test values.

@Ferudun did some modifications based on the AI code to prioritize pointers (just swapping our test order) and it tested well (but he did not test on viewsonic). Whit this change, it means that desktop, etc. now use pointer events, which should work, but are different events than we have been using... so there is a risk of some other things not working...

I have made a drag2.html test that uses the new pointer-event-prioritized code and has a basic ZIM drag() on the red circle.

https://zimjs.com/drag2.html

The test still shows the various test values (like the touch page). So this is the preferred test page for the teachers to report on. If we could have them screenshot the values or provide a short vid like last time, and see if the circle drags on their boards.

Thanks.

2 Likes

Thank you for the updated test page. I've sent it out and fingers crossed I get some responses as none came from the last batch I sent out.

Right - I figured the new file would also work as a reminder...