openedx / openedx/frontend-app-authoring

Ensure double-click opens card instead of opening sidebar

Open
#2,336 9 comments 0 reactions 1 assignee View on GitHub

@ahtesham-quraish is already working on this.

Since Sep 8, 2025.

bug mao-onboarding
Dominant language
TypeScript
Stars
17
Forks
218
Avg merge
9d 20h
Merged PRs (30d)
20

Description

Image

In this video, the user attempts to double-click on a subsection. The first click opens the sidebar, which causes a layout update, and prevents the double-click from registering (since the layout reflows, second click is on the sidebar).

This may be able to be fixed with a brief pause after a single click. In other words, for a typical double-click threshold of ~500ms:

1.(0ms) Click event on the card registers
2. (0ms) Timer for 500ms begins
3. (0ms-500ms) If a double-click event is registered on the card, the timer is canceled
4. (500ms) The sidebar opens at the end of the timer, if no double-click was registered

The threshold may need some tuning. I don't think it's possible to detect the user's double-click delay, so there's a potential accessibility concern (we want any users with a longer double-click time to still be able to double-click if possible). There's also a potential performance concern (500ms is above the general recommended perceptual delay threshold, so we may want to adjust downwards if it doesn't feel responsive).

Related Issues

#1883
#1598


(Follow-up based on feedback at Open edX 2025, thanks @ormsbee for highlighting this)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.