OpenTabletDriver / OpenTabletDriver/opentabletdriver.github.io
Wiki title blink does not work reliably when opening from another tab/window
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 36
- Forks
- 10
- Avg merge
- 12h 32m
- Merged PRs (30d)
- 9
Description
The Javascript code handling the fragment in the URL that's designed to blink the title of the section in the fragment does not seem to consider whether the tab is visible to the user yet.
How to reproduce:
- Open this link leading to the wiki in a new tab: https://opentabletdriver.net/Wiki/FAQ/Linux#libinput-smoothing
- Wait a second or 2 after the tab finishes loading
- You may now switch to the new tab
- Observe that the section title has not blinked to catch the attention of the user
You can switch to the tab instantly after opening, or refresh the page to confirm that the script does work correctly.
Suggested fixes:
- Don't blink the title before the script can confirm that the user is on the page ('window visible' event if any, mouse movement, etc)
- Instead of using an animation, highlight the title in a different manner
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the JavaScript that handles URL fragments and triggers the wiki section-title blink when opening the FAQ link in a new tab. Reproduce the delayed-tab-switch case, then verify that the title still draws attention after the page becomes visible; the issue does not name a file or test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100