Skip to content

Engine: a caret placed on a partly clipped textarea line answers not placed (layoutMoved); prove it by re-running the box search at the point #348

Open

Description

@SSFSKIM

Problem

#341 places the caret in a background Chromium textarea selection-first. It answers "placed" only when the box of the character beside the caret has moved at most 1 pt between the read before the writes and the read-back. Otherwise it answers focusedNotPlaced, reason layoutMoved.

That proof is conservative when the clicked line is partly clipped by the field's edge. The caret's write scrolls the line into view, by 5 pt in the measured cell, so the field answers not placed although the caret is at the clicked character. #341's A/B (https://github.com/SSFSKIM/cua/actions/runs/42578081142, the wheel-scrolled cell) shows this in 9 of 12 cells.

It's an honest false negative. The model can click again.

Intent

Replace "the scroll is unchanged" with "the point still maps to the written offset": after the writes, re-run #290's box search at the clicked point, and answer placed if and only if it gives the offset that was written. That's about 30 reads.

Constraints

Success criteria

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementpriority:P3status:ready-for-implementer

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions