Questions tagged [trackpad]
122 questions
38
votes
9 answers
Detect touchpad vs mouse in Javascript
Is there any way to detect if the client is using a touchpad vs. a mouse with Javascript?
Or at least to get some reasonable estimate of the number of users that use touchpads as opposed to mice?

Fragsworth
- 33,919
- 27
- 84
- 97
20
votes
4 answers
How to detect the user is using the Trackpad and not the mouse in Java swing?
I hava a Java swing application that use a 'pan-able' JComponent to display large data. When the user move the mouse wheel, I listen to these events, and update the content of the JComponent from the scrolled amount.
I would like to have a different…

Jean-Yves
- 699
- 1
- 11
- 22
18
votes
1 answer
HTML5/Javascript - Is it possible to get the absolute coordinates of a touch event on a Macbook Trackpad in the browser?
I would like to write something in the browser which records gestures on the trackpad.
Since I wanted to be able to track all motion without having to worry about the pointer leaving the window, I first researched this problem and used the MDN…

uglycoyote
- 1,555
- 1
- 19
- 25
14
votes
2 answers
Prevent page navigation on horizontal scroll
I am using a mac trackpad.How to prevent the page going back and next to visited pages on horizontal scroll ?.
I tried to prevent the wheel events but it doesn't works most of the time.
container.addEventListener('wheel', function(ev) {
…

Prasanna Rkv
- 419
- 4
- 12
13
votes
3 answers
Mac cocoa - how can i detect trackpad scroll gestures?
I want to detect scroll gestures (two fingers on trackpad).
How should i do that?

Erik Sapir
- 23,209
- 28
- 81
- 141
13
votes
4 answers
know the position of the finger in the trackpad under Mac OS X
I am developing an Mac application and I would like to know the position of the finger in the trackpad when there is a touch.
Is it something possible and if yes, how?

AP.
- 5,205
- 7
- 50
- 94
13
votes
1 answer
Shortcut to toggle between .h and .m files in xcode5
I was very comfortable using 3 finger swipe up or down gesture on a trackpad to toggle between prior versions of Xcode, However in Xcode5 I don't find an easy gesture on trackpad to do so.
Have any one identified any easier shortcuts on trackpad to…

thatzprem
- 4,697
- 1
- 33
- 41
11
votes
6 answers
Check if user is scrolling with trackpad?
I have created a site where users are able to scroll through a gallery using mouse scroll or arrow up/down. It is working like I want it to, and changing one image pr scroll when scrolling with a mouse.
But if the user is scrolling with a trackpad…

Cody
- 317
- 1
- 5
- 14
9
votes
1 answer
Can we rotate the digital crown in Apple Watch simulator without having a mouse- or trackpad?
The only reference I can find in operating (rotating/turning) the digital crown on the Apple Watch 2.0 / 3.x simulator is by using a track/mouse-pad.
Is it possible with a mighty mouse to rotate/turn the digital crown in a simulator?

iOS-Coder
- 1,221
- 1
- 16
- 28
9
votes
3 answers
WPF - Two Finger Horizontal scrolling on Macbook pro trackpad
The OS is Windows 8 on a Retina Macbook PRO.
i need to support both vertical scrolling using the trackpad and horizontal scrolling in my app.
I would like to move the WPF scrollviewer position based on the two finger swipes up-down (vertical…

Faris Zacina
- 14,056
- 7
- 62
- 75
9
votes
5 answers
Mac Cocoa: How to differentiate if a NSScrollWheel event is from a mouse or trackpad?
In my application, I want the scrolling to happen, only with scroll wheel action from a mouse and not from the two finger gesture on a trackpad. Basically, I am trying to determine if the scrollWheelEvent is generated from the mouse or trackpad,…

AProgrammer
- 389
- 3
- 9
8
votes
3 answers
Java trackpad 2-finger scroll listener
how can i detect a 2-finger scroll on a laptop trackpad in java? I've been searching google and here but can't find anything on scrolling using a trackpad let alone how to listen for it. any help would be greatly appreciated. thanks.

Joe
- 1,326
- 7
- 34
- 52
8
votes
2 answers
How can I access my trackpad in C#?
I'm pretty bored this weekend.
I've decided to build a morse code application where I can use my trackpad to tap morse code in and have my app sound it out.
I told you I was bored! :D
Is there some defacto way to access a trackpad in C#? I mean…
delete
7
votes
2 answers
Is there any support for mouse wheel and Apple track-pad in Silverlight 5?
One of my Silverlight applications has some users to use it on Apple Macs. They complain that the mouse wheel and track-pad don't work.
From the research I've done, it seems that this isn't supported in browser-hosted applications on Macs.
Does…

Craig Shearer
- 14,222
- 19
- 64
- 95
7
votes
1 answer
Generate and post Multitouch-Events in OS X to control the mac using an external camera
I am currently working on a research project for my university. The goal is to control a Mac using the Microsoft Kinect camera. Another student is writing the Kinect driver (which will be mounted somewhere on the ceiling or the wall behind the Mac…

NexD.
- 784
- 6
- 11