Skip to content

fix: land cross-line word drops on the line under the cursor at any scale - #189

Merged
boidushya merged 1 commit into
masterfrom
fix/cross-line-drop-scale
Aug 31, 2026
Merged

fix: land cross-line word drops on the line under the cursor at any scale#189
boidushya merged 1 commit into
masterfrom
fix/cross-line-drop-scale

Conversation

@boidushya

Copy link
Copy Markdown
Member

Overview

Dropping a word onto another line reconstructed each row's position from fixed pixel constants, so at any non-100% browser or system scale that math drifted from the real layout and the word landed on the wrong line, worse the further down you dropped. Now the drop hit-tests the row actually under the cursor with elementFromPoint, which lives in the pointer's own coordinate frame, so the word lands where you drop it at any scale.

@github-actions

Copy link
Copy Markdown

React Doctor found no new issues. 🎉

Reviewed by React Doctor for commit f9e78a0.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
composer f9e78a0 Commit Preview URL

Branch Preview URL
Aug 31 2026, 05:10 PM

@boidushya
boidushya merged commit a6a95b5 into master Aug 31, 2026
7 checks passed
@boidushya
boidushya deleted the fix/cross-line-drop-scale branch August 31, 2026 17:30
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

Successfully merging this pull request may close these issues.

1 participant