Skip to content

Small active area when selecting number fields on blocks #132

Closed
@drigz

Description

@drigz

scratch-blockly hitbox

To change the number "1" on the block above, you have to click inside the text area of the "1" - clicking in the surrounding white area does nothing. The active area is highlighted in the image above. This is especially hard to hit on touchscreens.

Two possible fixes:

  • Blockly.Field.init() could install the mouseup handler on block.getSvgRoot()
  • or field.borderRect_ could be larger (what it's current purpose? It has width="0" for me)

What do you think is the right approach to improving this?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions