monaco-editor icon indicating copy to clipboard operation
monaco-editor copied to clipboard

The right-pointing mouse pointer is oversized in high DPI

Open be5invis opened this issue 10 years ago • 8 comments

qq 20160621031257 (I have to take a photo because there is no software can take a correct snapshot)

be5invis avatar Jun 20 '16 19:06 be5invis

Hehe was coming here to say the same thing: happens on OS X too, retina display.

2016-06-20

joaomoreno avatar Jun 20 '16 19:06 joaomoreno

I'm thinking it is caused by https://github.com/Microsoft/vscode/blob/master/src/vs/editor/browser/viewParts/lineNumbers/lineNumbers.css#L22 I wonder why we don't see this in vscode too.

alexdima avatar Jun 20 '16 20:06 alexdima

Wowzers 😅

csinco avatar Jun 21 '16 02:06 csinco

I was going to try this on my high DPI Windows machine, but I don't even get a right-facing pointer in that scenario. (Using Chrome Version 53.0.2767.4 dev-m (64-bit))

somewhatabstract avatar Jun 21 '16 14:06 somewhatabstract

On Safari (9.1) I get a proper sized pointer on a high dpi screen

Haroenv avatar Jun 21 '16 18:06 Haroenv

It shows big pointer even in normal dpi when zoom is applied. Tested on chrome. It is problem with css property cursor: webkit-image-set, which only have 2 definitions: one for normal(1x) resolution and one for high dpi(2x). Adding more definitions would solve the problem. This is css4 feature, so no official support yet.

nikikante avatar Jun 21 '16 21:06 nikikante

@alexandrudima I am still getting this when using a newer electron (with Chrome 51) in VS Code:

editors

bpasero avatar Jul 04 '16 06:07 bpasero

Ok I think your fix solves this for the standalone editor by just changing the CSS rule to be workbench specific. I will create an issue in VS Code repository.

bpasero avatar Jul 04 '16 06:07 bpasero