vimium icon indicating copy to clipboard operation
vimium copied to clipboard

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

Open benwoodward opened this issue 6 years ago • 6 comments

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.

benwoodward avatar Mar 18 '19 22:03 benwoodward

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.

smblott-github avatar Mar 19 '19 14:03 smblott-github

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).

gdh1995 avatar Mar 19 '19 15:03 gdh1995

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!

InnovativeInventor avatar Jun 09 '19 19:06 InnovativeInventor

Maybe unclutter solves your problem.

ght avatar Jun 13 '19 10:06 ght

OS: macos catalina Browser: Chrome Windows manager: Amethyst

Not really a solution, but a hack work around. If you enter search mode then hit escape this will hide the cursor.

crowdmarkos avatar Nov 12 '20 20:11 crowdmarkos

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$"
					]
				}
			]
		}
	]
},

chrisgrieser avatar May 19 '22 08:05 chrisgrieser