Skip to content

[UX Bug] Dragging Brightness slider triggers global drag-and-drop overlay instead of adjusting value #1515

@tharunika-19

Description

@tharunika-19

🐛 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

  1. Open https://reframe-lilac.vercel.app/
  2. Scroll down to the Adjustments section in the left panel
  3. Click and drag the Brightness slider
  4. ❌ The "Drop your video anywhere / Release to start uploading" overlay appears
  5. Brightness value does not change
  6. 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

Image Image

Environment

  • Browser: Chrome
  • OS: Windows 11

Labels

bug ux good first issue

Metadata

Metadata

Assignees

Labels

bugSomething isn't working correctlytype:bugBug fixtype:designUI/UX design

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions