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

bugfix: boxes/ui: Display mouse selection_hint for entire View. #1085

Merged
merged 1 commit into from
Jul 18, 2021

Conversation

zee-bit
Copy link
Member

@zee-bit zee-bit commented Jul 17, 2021

What does this PR do?
This commit fixes 2 bugs related to displaying selection_hint on mouse_drag
events. This migrates the mouse_event from MessageBox to the entire View
so that the selection_hint is displayed even when the user tries to perform
mouse_drag events outside of MessageBox i.e. anywhere in View.

This also fixes selection_hint getting stuck in the footer if the mouse is
dragged in the MessageView but released outside of it.

Thanks to @Rohitth007 for reporting this bug in #zulip terminal>Drag-to-select-text

Tested?

  • Manually
  • Existing tests (adapted, if necessary)
  • Passed linting & tests (each commit)

This commit fixes 2 bugs related to displaying selection_hint on mouse_drag
events. This migrates the mouse_event from MessageBox to the entire View
so that the selection_hint is displayed even when the user tries to perform
mouse_drag events outside of MessageBox i.e. anywhere in View.

This also fixes selection_hint getting stuck in the footer if the mouse is
dragged in the MessageView but released outside of it.
@zulipbot zulipbot added the size: M [Automatic label added by zulipbot] label Jul 17, 2021
@neiljp neiljp added this to the Next Release milestone Jul 18, 2021
@neiljp neiljp added area: UI General user interface update mouse support (low priority) bug Something isn't working labels Jul 18, 2021
@neiljp neiljp merged commit 14e3bf1 into zulip:main Jul 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: UI General user interface update bug Something isn't working mouse support (low priority) size: M [Automatic label added by zulipbot]
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants