Skip to content

UI Controls: Increase the clickable area of buttons#2734

Draft
DanielMcInnes wants to merge 1 commit intomainfrom
2684-increase-clickable-area-2
Draft

UI Controls: Increase the clickable area of buttons#2734
DanielMcInnes wants to merge 1 commit intomainfrom
2684-increase-clickable-area-2

Conversation

@DanielMcInnes
Copy link
Contributor

Fixes #2684

@DanielMcInnes DanielMcInnes marked this pull request as draft December 17, 2025 06:28
@DanielMcInnes DanielMcInnes force-pushed the 2684-increase-clickable-area-2 branch 2 times, most recently from 41692b8 to 7e1aaf5 Compare December 17, 2025 06:48
@DanielMcInnes DanielMcInnes marked this pull request as ready for review December 17, 2025 07:07
@DanielMcInnes DanielMcInnes force-pushed the 2684-increase-clickable-area-2 branch 2 times, most recently from 342eb3f to 2aa8d73 Compare December 17, 2025 23:27
@DanielMcInnes DanielMcInnes force-pushed the 2684-increase-clickable-area-2 branch from 2aa8d73 to a402117 Compare December 17, 2025 23:33
property alias expandedClickableArea: expandedClickableArea
property var expandedSceneCoords

onXChanged: sceneCoordsTimer.restart()
Copy link
Contributor

Choose a reason for hiding this comment

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

I would prefer Qt.callLater(), or even better: automatic binding re-evaluation whenever x/y/width/height change.

onExpandedSceneCoordsChanged: {
overlappingButtonPairs = overlappingPairs(clickableSiblings)
}
onOverlappingButtonPairsChanged: {
Copy link
Contributor

Choose a reason for hiding this comment

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

all the logic here needs to move to C++ as it will be recalculated frequently, I assume (any x/y/width/height change, also of siblings)

@chriadam
Copy link
Contributor

This is moving in a very nice direction, and is almost there. But, there's enough complexity here to make me want to move this back to v1.3.0 scope, and do the simpler option for v1.2.0 release (i.e. just increasing the size of the touch area in the switch-related buttons for now, with manually-defined geometry).

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.

Improve the user experience clicking small buttons on a 5" cerbo

2 participants