Comments (5)
Unfortunately, we have no control over the looks or the interactions on the Touch Bar, so there is not much we can do about that.
from touchbardemoapp.
@AndreasVerhoeven Actually this would be trivial to do. It would involve overriding -wantsScrollEventsForSwipeTrackingOnAxis:
and in -scrollWheel:
you would translate the event using -trackSwipeEventWithOptions:dampenAmountThresholdMin:max:usingHandler:
.
As the handler is invoked, the NSEventPhase
would help us translate from -mouseDown:
, -mouseDragged:
, and -mouseUp:
, but we would need to repackage the NSEvent or create a CGEvent instead.
EDIT: Or even simpler, just translate -touchesBeganWithEvent:
and co. instead to mouse events.
from touchbardemoapp.
Seems you have a good idea on how to do this. Could you try it out and, if it works, send us a PR? We'd be happy to take a look.
from touchbardemoapp.
@robbertkl I'd love to but the earliest I can get to it would be next week on the account of exams. 👍
from touchbardemoapp.
@avaidyam I would love to see your implementation 👍 It bothers me always to scroll with clicked mouse instead of two-finger gesture 🙈
from touchbardemoapp.
Related Issues (20)
- SUGGESTION: Trackpad Support HOT 1
- swiping HOT 2
- iOS App crashes on iPad 2 (9.3.5) HOT 1
- Doesn't work on High Sierra HOT 2
- (enhancement) Option to drag the TouchBar around HOT 1
- Client: "Address already in use” error
- Keyboard works - touchbar does not HOT 5
- Broken on 16inch MacBook Pro
- Freezes
- Touchbar via Raspberry HOT 1
- New Mac support needed ! HOT 1
- Touch Bar Server "crashes" touchbar HOT 3
- [Suggestion] Allow physical function keys to control on screen touch bar HOT 1
- ios app link HOT 1
- Does not show up on 10.2.2 (16C67) HOT 2
- Does not show up on 10.12.3 (16D32) HOT 12
- Every key EXCEPT fn works. Uninstall? HOT 5
- Latest version still stops working after some time
- [suggestion] HOT 1
- [Suggestion] Adaptive iPhone small screen & Add touchpad mode HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from touchbardemoapp.