Cannot drag a video element inside of a Draggable

Open
#443 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript, react
Domain
frontend

Research direction

Start with the linked CodeSandbox reproduction and compare the draggable video behavior in Chrome 78 with the working div, Firefox, or Chrome 77. Trace the relevant react-draggable behavior using the reproduction; done means a video element fed by getUserMedia can be dragged inside Draggable without regression.

Written by the indexing model from the issue text.

Description

Hello, react-draggable maintainers! I think your package is lovely, and we use it for a video call interface in which we have a draggable "video panel" that can be moved around the screen.

However, ever since updating to Chrome 78, we've noticed that <video> tags inside of a Draggable are not being dragged correctly.

Here's a GIF of the behavior I'm seeing -- in green, you can see a "normal" draggable div without a video tag inside. That one works fine. In the black box, there's a draggable div with a video, fed by the getUserMedia API. This one, you can see that I have trouble dragging.
video-drag

Operating system: OSX Mojave / 10.14.6
Browser version: Version 78.0.3904.70
react-draggable version: Originally noticed on 3.3.2, but was able to reproduce with 4.1.0 as well

I wasn't able to reproduce this behavior on Firefox or in Chrome 77, so I think it might be something recently broken by the latest Chrome update. It used to to work!

Here is a simple reproduction:
https://codesandbox.io/embed/elated-goldwasser-4pogf

Dominant language
JavaScript
Stars
9.3k
Forks
1k
Avg merge
3d 8h
Merged PRs (30d)
4

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from react-grid-layout/react-draggable

All issues in react-grid-layout/react-draggable

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.