Skip to content

feat: add scroll-wheel zoom - #61

Merged
theoparis merged 8 commits into
mainfrom
push-wqlnmoumvrrm
Oct 21, 2026
Merged

theoparis merged 8 commits into
mainfrom
push-wqlnmoumvrrm

Conversation

@theoparis

Copy link
Copy Markdown
Collaborator

No description provided.

@theoparis
theoparis force-pushed the push-wqlnmoumvrrm branch 3 times, most recently from 3e93cac to 2a9a9dd Compare September 13, 2026 07:57
Signed-off-by: Theo Paris <[email protected]>
Change-Id: I1d42721ee52811df22ea886b2727a1d86a6a6964
Signed-off-by: Theo Paris <[email protected]>
Change-Id: I4c508d4f1655a684b12e412f2a19742c6a6a6964
…iewport

Signed-off-by: Theo Paris <[email protected]>
Change-Id: I81b9cce9cca2b1b6074da1805b81119d6a6a6964
response.hover_pos() only returns Some when this specific widget wins hover
for that pixel, which is false whenever a node, pin, or attribute widget is
on top. That silently dropped scroll deltas and made zooming feel laggy and
intermittent. Use the raw pointer position plus a simple rect-contains check
instead, which is independent of widget hover ownership.

Signed-off-by: Theo Paris <[email protected]>
Change-Id: Icd36eeddf23c9036a4e7e72bcb4b67286a6a6964
…section

content_rect() is in real, untransformed screen space, but it was being
intersected directly against the local (post-inverse-transform) visible
rect. At any zoom other than 1.0 that silently clamped the clip/fill/grid
area back down to roughly the original unscaled canvas size, causing a
tiny grid surrounded by solid background when zoomed out.

Signed-off-by: Theo Paris <[email protected]>
Change-Id: I39ecdb5d488d9ccdd65f4d96f6609f006a6a6964
@theoparis
theoparis merged commit d0b0002 into main Oct 21, 2026
1 check passed
@theoparis
theoparis deleted the push-wqlnmoumvrrm branch October 21, 2026 05:02
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