Skip to content

How can I detect which pane is clicked in the update function? #1016

Answered by yusdacra
ghost asked this question in Q&A
Discussion options

You must be logged in to vote

You need to use self.pane_grid_state.get(&pane) to get the state of the Pane, and then:

if let Some(pstate) = self.pane_grid_state.get(&pane) {
    self.id = pstate.id;
}

something like this should work.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ghost
Comment options

Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant