Skip to content

Move a held camera key every frame instead of following key repeat - #1381

Merged
sargunv merged 2 commits into
mainfrom
cursor/chain-held-key-steps-3556
Sep 11, 2026
Merged

Move a held camera key every frame instead of following key repeat#1381
sargunv merged 2 commits into
mainfrom
cursor/chain-held-key-steps-3556

Conversation

@sargunv

@sargunv sargunv commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

Description

A held camera key now moves the map every frame at one step per animationDuration, through the same gesture session and camera token as pointer drags, instead of restarting a 300 ms ease on each OS key repeat. A release before a full step eases the remainder, so a tap still moves exactly one step. Held keys add their directions (diagonal pan, pan while zooming; opposite keys cancel), and the hold loop is a child of the session, so KeyUp, focus loss, binding changes, and camera takeover all end it through the session. The animator duration scale applies only to the eased remainder; a zero animationDuration falls back to one jump per press and repeat.

Validation

mise run check, MapKeyInputTest (Android host), and KeyAndRotaryInputTest (jvm) pass, with new cases for per-frame motion, release, takeover, taps, repeats, and combined keys. Held arrow keys in the desktop demo move continuously with no pause after the first step; the maintainer also tested manually.

AI assistance

Claude Code (Claude Fable 5.1).

@sargunv
sargunv temporarily deployed to cloudflare-pages September 9, 2026 09:32 — with GitHub Actions Inactive
@cursor
cursor Bot temporarily deployed to cloudflare-pages September 9, 2026 09:44 Inactive
@sargunv
sargunv marked this pull request as ready for review September 9, 2026 09:46
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 9, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-11T06:54:11.170451Z be43d5b Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@cursor
cursor Bot temporarily deployed to cloudflare-pages September 9, 2026 10:05 Inactive

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9758504989

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d405c90942

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@sargunv
sargunv force-pushed the cursor/chain-held-key-steps-3556 branch from 4adc312 to be43d5b Compare September 11, 2026 06:50
@sargunv sargunv changed the title Chain held-key camera steps instead of following OS repeat Move a held camera key every frame instead of following key repeat Sep 11, 2026
@sargunv
sargunv marked this pull request as ready for review September 11, 2026 06:50
@sargunv
sargunv enabled auto-merge (squash) September 11, 2026 06:56
@sargunv
sargunv merged commit 4259a2f into main Sep 11, 2026
18 checks passed
@sargunv
sargunv deleted the cursor/chain-held-key-steps-3556 branch September 11, 2026 07:26
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