Questions tagged [trackpad]

122 questions
7
votes
1 answer

Detect MacBook trackpad two-finger tap with JavaScript/jQuery

I wonder if there's any way to detect if the user made a two-finger tap on the MacBook trackpad with JavaScript or jQuery. In one of the projects I'm detecting right mouse click with JavaScript and using it for some actions. It actually doesn't work…
cycero
  • 4,547
  • 20
  • 53
  • 78
6
votes
1 answer

Getting a custom UIView to respond to a two finger trackpad scroll gesture (or mouse scroll wheel)

I have an iPad app (in C#) with a custom UIView that allows input via touch and Apple Pencil stylus touches. I am trying to integrate support for trackpad/mouse indirect (cursor, or "pointer" as Apple calls it). I got hover working using…
Jared Updike
  • 7,165
  • 8
  • 46
  • 72
6
votes
0 answers

macOS extend Force Touch look up popup

I just want to add some functionality to “look up pop-up” (the pop-up when you force click) (check this: support.apple.com/kb/PH25145?locale=en_US). I looked for Apple documents and googled but couldn’t come across anything. These were mainly links…
iedmrc
  • 742
  • 2
  • 8
  • 21
6
votes
1 answer

Create keyboard shortcut to toggle Mac scroll direction

I would like to be able to use a keyboard shortcut to toggle the vertical scroll direction on my Mac laptop. I already have an app called Karabiner installed which I use for a number of custom key mappings. Is anyone familiar with Karabiner who…
Dsel
  • 1,027
  • 3
  • 13
  • 22
6
votes
2 answers

MacOS Get trackpad pressure globally

I'm trying to get MacBook Pro trackpad pressure with following code: CGEventRef eventTapCallback(CGEventTapProxy proxy, CGEventType type, CGEventRef eventRef, void *refcon) { NSEvent *event = [NSEvent eventWithCGEvent:eventRef]; …
pravdomil
  • 2,961
  • 1
  • 24
  • 38
6
votes
2 answers

Accessing Apple Magic Trackpad input data in a C++ program

I'd like to read trackpad multitouch gesture and coordinate data into my C++ program. Where can I find some introductory tutorials on doing this?
daj
  • 6,962
  • 9
  • 45
  • 79
5
votes
3 answers

How to use trackpad scrolling in .Net

My WinForms app uses the mouse wheel, subscribing to the Control.MouseWheel event. How can I get it to work with scrolling methods from other input devices, in particular "finger along the edge" scrolling on the (Synaptics) trackpad on my T61? I…
Joel in Gö
  • 7,460
  • 9
  • 47
  • 77
5
votes
5 answers

JQuery - Can I query the MacBook Pro Trackpad?

Can I use JQuery to query the Trackpad? So I can do something like this: Pseudo Javascript (JQuery) $(document).keyInput().trackpadTwoFingersLeft(function() { $('#div ul').animate({left: "=+1"},1); }); Is there a plugIn or another framework where…
Tomkay
  • 5,120
  • 21
  • 60
  • 92
5
votes
1 answer

Catching Mac trackpad zoom in OS X Safari

This question asks how to catch a trackpad two-fingers pinch-zoom on a Mac computer. The accepted answer explains that Chrome for OS X triggers a wheel event with ctrl key pressed when detecting a two-fingers pinch on the trackpad. Unfortunately,…
Jivan
  • 21,522
  • 15
  • 80
  • 131
5
votes
3 answers

OS X Cocoa - how can one detect trackpad zoom gestures?

How can one detect two finger zoom gestures on MacBook trackpad? (within a selected NSView)
hotpaw2
  • 70,107
  • 14
  • 90
  • 153
5
votes
2 answers

setAcceptsTouchEvents only works fine after a gesture on trackpad

I'm trying to use setAcceptsTouchEvents:YES to recognise custom touch events on the trackpad. Simply touching the trackpad nothing happens on the touchesBeganWithEvent. But if I do a gesture on the trackpad like pinching or scrolling the…
NeoRamza
  • 151
  • 1
  • 11
5
votes
2 answers

body: overflow-x - still able to scroll over with trackpad

I have a div with position: absolute set and it's just a tad bit wider than my browser window. I've successfully hidden the horizontal scroll bar, but I am still able to scroll over with a Macbook trackpad. Is there any way to circumvent this?
Yes Barry
  • 9,514
  • 5
  • 50
  • 69
4
votes
0 answers

How to set 'Tap to Click' behavior on macOS Catalina from command-line?

I am scripting the creation of new users for a macOS Catalina system. I am trying to activate by default the 'Tap to click' behaviour for the trackpad. I am already running these commands which do properly activate the 'Tap to click' check-box in…
MarcoM
  • 41
  • 3
4
votes
0 answers

How can I stop the current swipe on a trackpad

We are developing a website with unique navigation. Part of it involves on each scroll either up or down, it fires JavaScript and navigates to a different HTML element. It is in Vue.js / Nuxt. So far, everything works beautifully, minus the usage of…
hdwebpros
  • 528
  • 3
  • 7
  • 20
4
votes
0 answers

How do I distinguish mouse clicks with trackpad taps in Javascript?

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…
eadsjr
  • 681
  • 5
  • 20
1
2
3
8 9