Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use double-click to zoom in on particular offset in LGV, and make ctrl+scroll also zoom in on particular offset #3564

Merged
merged 2 commits into from
Mar 6, 2023

Conversation

cmdcolin
Copy link
Collaborator

@cmdcolin cmdcolin commented Mar 6, 2023

Fixes #3544

@github-actions github-actions bot added the needs label triage Needs a label to show in changelog (breaking, enhancement, bug, documentation, or internal) label Mar 6, 2023
@cmdcolin cmdcolin added enhancement New feature or request and removed needs label triage Needs a label to show in changelog (breaking, enhancement, bug, documentation, or internal) labels Mar 6, 2023
@github-actions github-actions bot added the needs label triage Needs a label to show in changelog (breaking, enhancement, bug, documentation, or internal) label Mar 6, 2023
@cmdcolin cmdcolin removed the needs label triage Needs a label to show in changelog (breaking, enhancement, bug, documentation, or internal) label Mar 6, 2023
@cmdcolin
Copy link
Collaborator Author

cmdcolin commented Mar 6, 2023

also makes ctrl+scroll zoom in on mouse pointer offset

@@ -239,7 +239,12 @@ export function useRangeSelect(

export function useWheelScroll(
ref: React.RefObject<HTMLDivElement>,
model: LGV,
model: {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ends up with circular reference so duck typed here now

@cmdcolin cmdcolin merged commit 888744d into main Mar 6, 2023
@cmdcolin cmdcolin changed the title Double click zoom Use double-click to zoom in on particular offset in LGV, and make ctrl+scroll also zoom in on particular offset Mar 6, 2023
@cmdcolin cmdcolin deleted the double_click_zoom branch March 6, 2023 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Double-click to zoom?
1 participant