Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Hide mouse cursor + disable mouse hover effects while scrolling #3273

Open
benwoodward opened this issue Mar 18, 2019 · 6 comments

Comments

@benwoodward
Copy link

I find myself having to move the cursor out of the way while scrolling in Vimium. It'd be great if the mouse cursor was hidden while scrolling in Vimium. This isn't a problem if you're scrolling with a trackpad or mouse because you can easily move the cursor while scrolling, but if you're scrolling with the keyboard, the position of the mouse cursor is not relevant, and can only be moved if you stop keyboard-scrolling and switch to mouse/trackpad to adjust it.

@smblott-github
Copy link
Collaborator

If I remember correctly, we had some code to do that quite some years ago, but it proved very unreliable. It shipped for a while, but was then disabled. I'm not keen to go back there.

@gdh1995
Copy link
Contributor

gdh1995 commented Mar 19, 2019

The old code to hide cursor is removed by #1951 on Jan, 2016: it's named CursorHider and mainly to solve #662.

However, Chrome also acknowledges this performance and functionality issues, and has developed a feature "Stop sending mouse position updates during scrolling" (https://www.chromestatus.com/features/5697181675683840) to prevent mousemove events when any element is scrolling.

So I agree that we don't need a cursor hider any more, if its only purpose is to changing appearance (but maybe has a little negative impact on scrolling performance).

@InnovativeInventor
Copy link

If you're using a Mac and browse Chrome in fullscreen mode, you can just hide the mouse in the corner and it disappears from your screen. I'm not sure if you're able to do this in other OSes, but it works for me!

@ght
Copy link

ght commented Jun 13, 2019

Maybe unclutter solves your problem.

gdh1995 added a commit to gdh1995/vimium-c that referenced this issue Mar 7, 2020
@chrisgrieser
Copy link

I found a solution using Karabiner Elements (Mac). I created a small keyboard modification that moves the cursor to the side as soon as the letter j is typed with a Browser being the frontmost app.

{
	"description": "j (Browser): also hides cursor",
	"manipulators": [
		{
			"type": "basic",
			"from": { "key_code": "j" },
			"to": [
				{ "key_code": "j" },
				{
					"software_function": {
						"set_mouse_cursor_position": {
							"x": "100%",
							"y": "90%",
							"screen": 0
						}
					}
				}
			],
			"conditions": [
				{
					"type": "frontmost_application_if",
					"bundle_identifiers": [
						"^com\\.vivaldi\\.Vivaldi$",
						"^org\\.chromium\\.Chromium$",
						"^com\\.google\\.Chrome$",
						"^com\\.brave\\.Browser$",
						"^com\\.apple\\.Safari$"
					]
				}
			]
		}
	]
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants
@ght @benwoodward @smblott-github @gdh1995 @InnovativeInventor @chrisgrieser and others