Comments (6)
What works even better than Page Up/Down is sending multiple scroll events!
They get ignored if sent all at once, but with 20ms delay between them, they do the job of Page Up/Down, but more smoothly!
Furthermore, while Paging keys always get delivered to the window in focus, the scroll event simulation gets delivered to the window under the cursor, which IMO is far more desirable.
CGEventRef scroll = CGEventCreateScrollWheelEvent(NULL, kCGScrollEventUnitLine, 1, upwards ? -10 : 10);
CGEventPost(kCGHIDEventTap, scroll);
CFRelease(scroll);
I've used an NSTimer in a for-loop to send 7 of these 20ms apart.
from mac-mouse-fix.
My quick hack to do this is to change behavior of "Move between spaces" in InputParser.m as follows:
(Since I personally don't use multiple spaces that often)
added #include <Carbon/Carbon.h>
on top as well (not shown above).
I'm not too familiar with XIBs and Objective-C, otherwise I'd have created a PR with this feature baked in as a 3rd option for side-buttons :)
from mac-mouse-fix.
I have a trackball with side buttons and no scroll wheel buttons, so having a "Scroll up/down" option for the Side Buttons would also be valuable for me.
from mac-mouse-fix.
Can you post a PR? I'm not sure where to add that but I'd love to try it out. A +1 for treating them as swipe up/swipe down instead of page up/page down.
from mac-mouse-fix.
Ah, nevermind, I see where you mention that you're not super familiar with ObjC/XIBs.. me either :(
from mac-mouse-fix.
Hey guys sorry for chiming in so late. You can now assign Page Up and Page Down to a mouse button in the new 2.0.0 Beta 2. Let me know what you think!
from mac-mouse-fix.
Related Issues (20)
- Mission Control keyboard shortcuts are deleted when corresponding action is assigned in Mac Mouse Fix [bug] HOT 5
- Option to Invert `Scroll & Navigate` and `Spaces & Mission Control` directions [enhancement]
- Option for disabling `Mac Mouse Fix` entirely while a certain application is opened [enhancement] HOT 2
- Sensitivity of controlling Mission Control through mouse clicks and drags [enhancement] HOT 1
- mi silent mouse side buttons not working [bug]
- Razer Orochi v2 middle button not recognised [bug] HOT 3
- Continue passing button events to other apps [bug] HOT 1
- The zoom in Arc has been fixed but in other browsers not [bug]
- Cannot enter a keyboard shortcut [bug] HOT 2
- Lagging when I scroll down [bug]
- Support for Contour RollerMouse Red Buttons [enhancement]
- Move left/right system shortcut erase system ones [bug]
- scrolling fail when zoomed in websites using Chrome [bug]
- MMF Keeps Crashing while scrolling in Chrome [bug]
- capture mouse left and right button click together event [enhancement]
- I'm being asked to pay even though I donated back in September 😢 [bug] HOT 2
- 关于罗技系列有滚轮左右拨动这两个键还无法正常识别 [enhancement]
- Sometimes scrolling mousewheel takes 1 second to respond [bug]
- Scrolling Not Working [bug] HOT 1
- Cannot scroll [bug]
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 mac-mouse-fix.