Skip to content

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

Open

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

Activity

  1. added
    bug
    on Jun 3, 2026
  2. github-actions commented on Jun 3, 2026

    @github-actions
    Contributor

    👋 Thanks for opening an issue, @tharunika-19!

    Our maintainers will review this shortly 🚀

    Before you start working

    • 📖 Read the CONTRIBUTING.md guide
    • 💬 Wait for a maintainer to assign you the issue before starting work
    • 🔍 Search for existing issues to avoid duplicates

    For GSSoC'26 contributors

    If you're contributing under GirlScript Summer of Code 2026, please mention it in your comment when requesting assignment:

    "I'd like to work on this — contributing under GSSoC'26"

    Architecture notes

    Reframe is a static Next.js app with output: "export". Key points:

    • All video processing uses FFmpeg.wasm (client-side, no server)
    • headers() in next.config.ts won't work — use vercel.json instead
    • not-found.tsx requires public/404.html + vercel.json routes config

    Happy contributing! ⭐ Star the repo if you find it useful!

  3. tharunika-19 commented on Jun 3, 2026

    @tharunika-19
    Author

    /ASSIGN/GSSOC2026

  4. github-actions commented on Jun 3, 2026

    @github-actions
    Contributor

    Hey @tharunika-19, this issue has been assigned to you! 🎉 Please make progress within 5 days or it will be automatically unassigned due to inactivity.

  5. github-actions commented on Jun 5, 2026

    @github-actions
    Contributor

    Hey @tharunika-19, just a friendly reminder that this issue has had no activity for 2 days. Please leave an update or let us know if you need help! ⏰

  6. tharunika-19 commented on Jun 5, 2026

    @tharunika-19
    Author

    Thanks for the reminder! I've identified the issue and proposed an approach to fix the alignment problem. I'm currently working on implementing and testing the solution. I'll share further updates soon.

  7. github-actions commented on Jun 9, 2026

    @github-actions
    Contributor

    Hey @tharunika-19, final warning! ⚠️ This issue has had no activity for 4 days and will be automatically unassigned in 24 hours if there is no update.

  8. github-actions commented on Jun 15, 2026

    @github-actions
    Contributor

    This issue has been unassigned from @tharunika-19 due to 5 days of inactivity and is open for anyone to pick up — comment /assign to claim it!

  9. vipul674 commented on Jun 21, 2026

    @vipul674

    I would like to work on this under GSSoC'26. Please assign it to me.

  10. anirudhu-ui commented on Jun 25, 2026

    @anirudhu-ui

    Hi @maintainers,

    I would like to work on this issue under GSSoC'26.

    I have gone through the issue, reproduced the bug locally, and reviewed the suspected cause. My plan is to:

    • Reproduce the brightness slider drag issue.
    • Compare the Brightness slider implementation with the Contrast and Saturation sliders.
    • Investigate the global drag-and-drop event handling.
    • Implement a fix that prevents the upload overlay from appearing during normal slider interaction while ensuring external file drag-and-drop continues to work.
    • Thoroughly test the behavior across all adjustment sliders.

    If the issue is available, kindly assign it to me.

    Thank you!
    /assign

  11. github-actions commented on Jun 25, 2026

    @github-actions
    Contributor

    Hey @anirudhu-ui, this issue has been assigned to you! 🎉 Please make progress within 5 days or it will be automatically unassigned due to inactivity.

  12. github-actions commented on Jun 30, 2026

    @github-actions
    Contributor

    This issue has been unassigned from @anirudhu-ui due to 5 days of inactivity and is open for anyone to pick up — comment /assign to claim it!

  13. vipul674 commented on Jun 30, 2026

    @vipul674

    /assign

  14. github-actions commented on Jun 30, 2026

    @github-actions
    Contributor

    Hey @vipul674, this issue has been assigned to you! 🎉 Please make progress within 5 days or it will be automatically unassigned due to inactivity.

  15. vipul674 commented on Jul 1, 2026

    @vipul674

    /assign

  16. github-actions commented on Jul 1, 2026

    @github-actions
    Contributor

    Hey @vipul674, this issue is already assigned to @vipul674. Please pick another issue or wait for it to become available. You can browse open unassigned issues here: https://github.com/magic-peach/reframe/issues?q=is%3Aissue+is%3Aopen+no%3Aassignee

  17. github-actions commented on Jul 6, 2026

    @github-actions
    Contributor

    This issue has been unassigned from @vipul674 due to 5 days of inactivity and is open for anyone to pick up — comment /assign to claim it!

  18. github-actions commented on Jul 6, 2026

    @github-actions
    Contributor

    Hey @vipul674, this issue has been assigned to you! 🎉 Please make progress within 5 days or it will be automatically unassigned due to inactivity.

  19. github-actions commented on Jul 11, 2026

    @github-actions
    Contributor

    This issue has been unassigned from @vipul674 due to 5 days of inactivity and is open for anyone to pick up — comment /assign to claim it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugtype:bugtype:design

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions