Does the magic trackpad 2 trigger javascript touch events in browser?

I apologize if this is the wrong spot to post this. I am looking to do some basic javascript development for some front end sites. I am tired of the process of uploading to my test server to be able to see if my touch event programming is working properly. Can anyone confirm that the Magic Trackpad 2 triggers javascript touch events vs standard mouse events?


Thank you

By touch events are you referring to left click, right click, double click, etc.? I have no problems accessing web sites using my MacBook Pro, and that uses a track pad. (Tap with one finger for left click and tap with two fingers for right click.) If I couldn't trigger the onclick operations, I wouldn't be able to use the web.

Sorry, no. I understand that it functions in all normally expected behaviors. What I am trying to do is test mobile style gestures in the browser without having to ftp a file to my server, then load it on my phone. Ideally I was hoping that the trackpad would send the same signal data to the browser as if it were a mobile touch device. It appears that it instead fires only mouse events vs touch events.


I would like to be able to write some particular javascript events based around things like two finger touch and pinch to zoom.

Nope, it does not generate touch events. I tried in Firefox, Chrome and Safari. It's always just generating mouse and pointer events, no touch events.

If you use the chrome developer tools and click the 2nd button on the top right ("Toggle Device Toolbar") then it generates touch events. But it's only the same as with mouse, it doesn't generate multiple touch points.

So, in short: Nope, it's just a regular mouse to the browser.

Does the magic trackpad 2 trigger javascript touch events in browser?
 
 
Q