Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to detect, through browser Javascript, multi-touch events of a trackpad, magic mouse or magic trackpad on a Mac?

I know there are many ways to do so directly on the iPhone (jQtouch), but I'd like to detect those events in my computer's browser.

like image 669
davidwebca Avatar asked Sep 30 '10 14:09

davidwebca


People also ask

Can Magic Trackpad work with multiple devices?

According to this answer, Magic Track Pads can be paired with multiple devices, just not, as you stated, at the same time. As long as the track pad is not connected with another device, it will be pairable with an additional one.

Can you use both Magic Mouse and Trackpad at the same time?

Yes, you can use Magic Mouse and Magic Trackpad at the same time! Both devices establish contact with the Apple computer via Bluetooth and are no obstacles to each other.

Can you tap to click Magic Mouse?

Tap-to-click is not natively an option for this device, so I now use BetterTouchTool to achieve this. With this utility, I essentially expand the gesture options for the Magic Mouse 2 (not to mention a plethora of other Apple peripherals) to map a single left and single right tap to left and right clicks, respectively.


1 Answers

Mozilla has some support for mouse gestures: https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Mouse_gesture_events

Looks like chrome and safari don't have native support for the same : JQuery - Can I query the MacBook Pro Trackpad?

like image 74
Abhas Tandon Avatar answered Sep 23 '22 18:09

Abhas Tandon