I am trying to support a MacBook's trackpad with similar controls to my touch controls for mobile, using javascript. It maps to the mouse events however, and doesn't fire the touch events.
When I right click, I get a mousedown
event with event.button == 2
. When I perform a two-finger tap on the trackpad, I get the same event.
Is there any way to tell these two apart, so I can customize their behavior?