Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

japplin
Copy link
Contributor

@japplin japplin commented Sep 9, 2025

Re-opened: #1421

@japplin japplin requested review from zach-klippenstein and a team as code owners September 9, 2025 15:41
Copy link
Contributor Author

@japplin japplin left a comment

Choose a reason for hiding this comment

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

The zoom behaviour and locking of content to the bounds of the window feels much better now as does the double to click to zoom. The scroll wheel zooming is buggy and honestly I don't think needed at all given how well double click to zoom works.

scope.launch {
// TODO: this doesn't work super well.
// Probably because of https://github.com/saket/telephoto/issues/135?
zoomableState.zoomTo(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

From local testing this isn't adjusting the pan at all when selecting a node.

Copy link
Collaborator

Choose a reason for hiding this comment

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

This should be fixed by saket/telephoto@68fcaef. Do you mind if I update telephoto to its latest snapshot version?

Copy link
Contributor Author

@japplin japplin Sep 12, 2025

Choose a reason for hiding this comment

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

Nope go for it

Box(
modifier = modifier.onSizeChanged {
appWindowSize = it
// TODO: do we want to draw behind the search bar?
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think drawing behind the search looks correct, which is what it's doing already, if we didn't allow it there would be a jarring cutoff.

Copy link
Collaborator

Choose a reason for hiding this comment

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

In that case, do you want to synchronize the content padding below with the search box's height?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure, I think it was looking good how it was now.


val focusRequester = remember { FocusRequester() }
LaunchedEffect(zoomableState) {
// Request focus to receive keyboard shortcuts.
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is turning out to be more complex than I expected. The content starts in a focused state but loses focus when the search box is clicked. We'll have to restore focus when a search result is selected. Let me try fixing this.

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.

2 participants