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

Double clicking a file causes the loader to flash incorrectly #942

Closed
mattrunyon opened this issue Dec 12, 2022 · 2 comments · Fixed by #1189
Closed

Double clicking a file causes the loader to flash incorrectly #942

mattrunyon opened this issue Dec 12, 2022 · 2 comments · Fixed by #1189
Assignees
Labels
bug Something isn't working
Milestone

Comments

@mattrunyon
Copy link
Collaborator

mattrunyon commented Dec 12, 2022

Description

Double clicking a file that is not open causes it to briefly open in preview mode and then in full mode. The loading spinner double flashes in and out on the panel that is opening.

Double clicking a file that is open in preview mode triggers a load as well. This shouldn't happen since the file is already open

Steps to reproduce

  1. Open a code studio
  2. Double click in the file explorer on a file that is not currently open
  3. Single click a file that is not open so it opens in preview mode
  4. Double click the file that is open in preview mode

Expected results

  1. The first file opens in full mode w/ 1 loading spinner and no flashes
  2. The second file opens in full mode with no loading spinner

Actual results

  1. The first file opens in preview mode w/ loading spinner, displays file, then loading spinner again, then file in full mode
  2. The second file opens in full mode after a loading spinner

Versions

  • Deephaven UI: 0.22.2
@mattrunyon mattrunyon added bug Something isn't working triage Issue requires triage labels Dec 12, 2022
@dsmmcken
Copy link
Contributor

This is pervasive throughout the app, you can double click a whole lot of things and cause problems.

@mofojed mofojed assigned mofojed and unassigned mofojed Dec 13, 2022
@vbabich vbabich removed the triage Issue requires triage label Dec 14, 2022
@vbabich vbabich added this to the December 2022 milestone Dec 14, 2022
@mofojed mofojed modified the milestones: December 2022, January 2023 Dec 29, 2022
@mofojed mofojed modified the milestones: January 2023, February 2023 Feb 8, 2023
@mofojed
Copy link
Member

mofojed commented Feb 27, 2023

This is pervasive throughout the app, you can double click a whole lot of things and cause problems.

I don't think that really applies in this situation. In this case, a double-click is supposed to do something specific.

We're essentially simulating the same behaviour as VSCode; single click opens a file in "preview" (italics in the title bar), and then double-clicking it opens it "non-preview" (regular styling in title bar). Basically after doing a double-click, the content shouldn't change at all, it should just be the title-bar that is re-opening. I imagine what we're currently doing is replacing the whole tab, causing the file to reload. Should handle that differently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants