[Feature]: A way to set an exact value to the sliders.
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 53.9k
- Forks
- 10.7k
- Avg merge
- 18h 38m
- Merged PRs (30d)
- 130
Description
Is the feature relevant to the Firefox PDF Viewer?
Yes
Feature description
What if there was a way to set an exact value to the sliders, such as the text size slider?
<input type="range" id="editorFreeTextFontSize" class="editorParamsSlider" value="10" min="5" max="100" step="1" tabindex="0">
There's a way to do this in the console, pasting:
const slider = document.getElementById('editorFreeTextFontSize'); slider.value = 25; slider.dispatchEvent(new Event('input', { bubbles: true }));
But what about an option in the contextMenu?
Unfortunately I can't do this with an Web Extension.
Other PDF viewers
No response
Contributor guide
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 input with id editorFreeTextFontSize and the existing contextMenu handling in the Firefox PDF Viewer. Trace how slider input events update the text size, then determine how an exact-value option could use that path. Done means the context menu can set an exact slider value and the viewer reflects it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 58/100