Skip to content

Make field cursors reflect the entire click target area instead of just the field group#23

Merged
GarboMuffin merged 1 commit intoTurboWarp:developfrom
Nitro-Bolt:bigger-cursor-area
May 14, 2025
Merged

Make field cursors reflect the entire click target area instead of just the field group#23
GarboMuffin merged 1 commit intoTurboWarp:developfrom
Nitro-Bolt:bigger-cursor-area

Conversation

@CST1229
Copy link

@CST1229 CST1229 commented May 6, 2025

Proposed Changes

Not really a bug, more of a teensy tiny quality of life improvement proposal. Basically it just applies this.CURSOR set on fields to apply to the entire click target instead of just the field group.

Before:
before
After:
after

Reason for Changes

This makes the field's cursor reflect the actual area where it's clickable; so if your cursor turns into a text cursor you now know that you're hovering over the text field and will focus it if you click.

Test Coverage

Not really tested (aside from trying it out in the playground).

This pull request was made on behalf of the entire NitroBolt project. /j (more specifically, Cubester requested me to upstream this one change)

@CubesterYT
Copy link
Member

You're welcome, people of TurboWarp. Many lives will be saved.

ronaldo

@GarboMuffin
Copy link
Member

thanks

@GarboMuffin GarboMuffin merged commit d3b7664 into TurboWarp:develop May 14, 2025
1 check passed
@CubesterYT CubesterYT deleted the bigger-cursor-area branch May 14, 2025 03:06
CubesterYT referenced this pull request in Nitro-Bolt/scratch-blocks Feb 23, 2026
* increase field cursor area to the entire click target

* Turning blocks now use the angle field (scratch-blocks)

* Add setting color in procedure playground (#8)

Add setting color in procedure playground

* nitpick fix, jwk was correct in the naming

* Add a way to reload core files

* add require

* woosh

* Fix some stuff and update isValidHexCode_

* Fix that 1 annoying error and update some stuff to use goog.queueMicrotask

* Don't use this

* aaaa

* Update core/polypatch.js

Co-authored-by: Cubester <[email protected]>

* Update polypatch.jsGWAHHHHHHHHHHHHHHHHHHHH

* Checking the Box (#11)

Adds checkboxes to NitroBolt, and makes it built into all boolean inputs.

---------

Co-authored-by: jwklong <[email protected]>
Co-authored-by: Cubester <[email protected]>
Co-authored-by: CST1229 <[email protected]>

* Back to normal

* Make field cursors reflect the entire click target area instead of just the field itself (#23)

* Update GitHub Actions workflows

- update actions/setup-node to fix extra 10 minute delay in CI
- update Node.js
- use version ranges instead of commit hashes to get future updates
  automatically (we already trust the GitHub Actions team)

* Adjust angle dropdown color to match parent block (#24)

Co-authored-by: Thomas Weber <[email protected]>

* fix checkboxes

* dont include my editor stuff pretty please

* refactor checkbox clicking to use the gesture system
this fixes a bug where if you drag the mouse cursor while clicking on an unchecked boolean input, but not enough to drag the block, it clicks the block below instead of checking the checkbox

* only run connectBoolean on boolean inputs even if an input is clickable

* fix undo/redo with checkboxes

* fix workflow

* im cooking

* get rid of mysterious file

* tada

* jolly good doings

* revert

* Revert "revert"

This reverts commit d223b29.

* fix checkboxes (blocks part)
not custom block ghost blocks though

* Fix displaying -0 in visual reports (#25)

* collapsible blocks

* Revert "Fix displaying -0 in visual reports (#25)"

This reverts commit 3539a61.

It gets stringified in VM so we'll fix it in there instead.

* add sensing_online

* entries of {} block

* Disable collapsing for procedure definition block

* New JSON blocks: get object properties, array length, slice array, reverse array

* fix: use extension instead of output

---------

Co-authored-by: CST1229 <[email protected]>
Co-authored-by: jwklong <[email protected]>
Co-authored-by: yuri-kiss <[email protected]>
Co-authored-by: jwklong <[email protected]>
Co-authored-by: Thomas Weber <[email protected]>
Co-authored-by: SharkPool <[email protected]>
Co-authored-by: Thomas Weber <[email protected]>
Co-authored-by: ddededodediamante <[email protected]>
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.

3 participants