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

refactor(tab): simplify mouse hold and release #1185

Merged
merged 4 commits into from
Mar 8, 2022

Conversation

tlinford
Copy link
Contributor

@tlinford tlinford commented Mar 6, 2022

Simplify some code around mouse handling:

  • remove unnecessary Option for position when ending selection, and return None when Grid has empty selection
  • simplify Tab mouse release and hold handlers
  • when a selection is initiated in a floating pane, and the mouse leaves the floating pane the selection stays active, instead of starting to move the pane

@tlinford tlinford temporarily deployed to cachix March 6, 2022 21:07 Inactive
@tlinford tlinford temporarily deployed to cachix March 6, 2022 21:07 Inactive
@tlinford tlinford temporarily deployed to cachix March 7, 2022 13:11 Inactive
@tlinford tlinford temporarily deployed to cachix March 7, 2022 13:11 Inactive
@tlinford tlinford temporarily deployed to cachix March 7, 2022 14:55 Inactive
@tlinford tlinford temporarily deployed to cachix March 7, 2022 14:55 Inactive
@tlinford tlinford force-pushed the refactory-simplify-tab-mouse branch from e433944 to 7b5e003 Compare March 7, 2022 15:10
@tlinford tlinford temporarily deployed to cachix March 7, 2022 15:10 Inactive
@tlinford tlinford temporarily deployed to cachix March 7, 2022 15:10 Inactive
@tlinford tlinford merged commit 7de7753 into main Mar 8, 2022
@tlinford tlinford deleted the refactory-simplify-tab-mouse branch March 8, 2022 17:26
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