comfy icon indicating copy to clipboard operation
comfy copied to clipboard

[WASM, Windows] Mouse position incorrect with screen DPI 150% (UI interaction broken)

Open nokola opened this issue 2 years ago • 5 comments

  1. Set monitor to 150% DPI in Windows 10
  2. Open https://comfyengine.org/examples/
  3. Click blood_canvas example
  4. Click letter "f"

Expected: blood under "f" Actual: blood offset lower right image

Note: this breaks UI interaction like button clicks as well due to mouse pos issues.

nokola avatar Nov 18 '23 02:11 nokola

Does this only happen for you on the web, or also on desktop?

darthdeus avatar Nov 20 '23 23:11 darthdeus

Web only

nokola avatar Nov 21 '23 08:11 nokola

I can see a high DPI issue on Windows now.

150% DPI offsets the egui window incorrectly. It's supposed to be centered below: image

nokola avatar Dec 04 '23 21:12 nokola

Windows bug should be fixed now, WASM isn't yet.

darthdeus avatar Dec 07 '23 03:12 darthdeus

Seems this issue is fixed in WASM too but not on the website. I wonder if there's something wrong with the website that further stretches the canvas or something that causes this, but it doesn't seem to happen when running https://github.com/darthdeus/comfy/tree/master/demos/egui-scaling through wasm-server-runner

darthdeus avatar Dec 08 '23 23:12 darthdeus