vercel / vercel/hyper

Cursor misaligns when display scaling is changed

Open
#3,737 14 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

🐛 Type: Bug
Dominant language
TypeScript
Stars
44.7k
Forks
3.6k
Avg merge
21m
Merged PRs (30d)
1

Description

  • I am on the latest Hyper.app version
  • I have searched the issues of this repo and believe that this is not a duplicate
  • OS version and name: MacOS Mojave 10.14.5
  • Hyper.app version: 3.0.2 (stable)
  • Link of a Gist with the contents of your .hyper.js: https://gist.github.com/jakubka/7b08efc99a92845433e52e84a95a538c
  • Relevant information from devtools (CMD+ALT+I on macOS, CTRL+SHIFT+I elsewhere): N/A
  • The issue is reproducible in vanilla Hyper.app: Yes, I don't have any plugins and I am using default .hyper.js config

Issue

When display scaling is changed on a Mac, the cursor is no longer where it should be.

Display scaling settings can be found in System Preferences -> Display -> Display tab -> Resolution: scaled.

This screencast will explain it better:
hyper-screen-capture

Notes:

  • this only happens with webgl renderer
  • it breaks even when the hyper app isn't open
  • restarting hyper or even the whole mac doesn't fix it

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no source file or test; first reproduce it in Hyper's WebGL renderer by changing macOS display scaling, then locate the cursor coordinate-handling entry point. Done means the cursor remains aligned after scaling changes, including when Hyper is restarted.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, typescript
Domain
computer-graphics, desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.