🐛 Bug Report
Description
When trying to drag the Brightness slider in the Adjustments panel, the app incorrectly
interprets it as a file drop event and shows the "Drop your video anywhere" overlay,
making the Brightness slider completely unusable via mouse drag.
This issue is isolated to the Brightness slider only — Contrast and Saturation sliders
work as expected.
Steps to Reproduce
- Open https://reframe-lilac.vercel.app/
- Scroll down to the Adjustments section in the left panel
- Click and drag the Brightness slider
- ❌ The "Drop your video anywhere / Release to start uploading" overlay appears
- Brightness value does not change
- Try the same with Contrast and Saturation sliders — they work fine ✅
Expected Behavior
- Dragging the Brightness slider should adjust its value smoothly
- The drag-and-drop overlay should only appear when dragging a file from outside the browser
- Behavior should be consistent across all three sliders (Brightness, Contrast, Saturation)
Actual Behavior
- Brightness slider drag activates the global file drop overlay
- Slider value remains unchanged
- Contrast and Saturation are unaffected
Root Cause (suspected)
The Brightness slider may be missing e.stopPropagation() on its drag events, or it has
a different event binding compared to the other sliders, causing the global dragenter /
dragover listener to incorrectly intercept its drag interaction.
Suggested Fix
Either add stopPropagation on the Brightness slider's drag events:
brightnessSlider.addEventListener('dragstart', (e) => {
e.stopPropagation();
});
Or guard the global listener to only trigger for external file drags:
window.addEventListener('dragenter', (e) => {
if (e.dataTransfer?.types?.includes('Files')) {
showDropOverlay();
}
});
Screenshots
Environment
- Browser: Chrome
- OS: Windows 11
Labels
bug ux good first issue
🐛 Bug Report
Description
When trying to drag the Brightness slider in the Adjustments panel, the app incorrectly
interprets it as a file drop event and shows the "Drop your video anywhere" overlay,
making the Brightness slider completely unusable via mouse drag.
This issue is isolated to the Brightness slider only — Contrast and Saturation sliders
work as expected.
Steps to Reproduce
Expected Behavior
Actual Behavior
Root Cause (suspected)
The Brightness slider may be missing
e.stopPropagation()on its drag events, or it hasa different event binding compared to the other sliders, causing the global
dragenter/dragoverlistener to incorrectly intercept its drag interaction.Suggested Fix
Either add
stopPropagationon the Brightness slider's drag events:Or guard the global listener to only trigger for external file drags:
Screenshots
Environment
Labels
buguxgood first issue