question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot drag a video element inside of a Draggable

See original GitHub issue

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

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:8

github_iconTop GitHub Comments

3reactions
chaitanyapanditcommented, Nov 11, 2019

I was able to reproduce this issue and for me setting my wrapped element’s position to fixed instead of absolute did the trick.

2reactions
STRMLcommented, Nov 4, 2019

Can replicate this… indeed it is a new bug in Chrome 78. Pretty weird! Will have to take some time to deep-dive into the diff from 77.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Video inside Draggable container not playing - GreenSock
The dragging and throwProps works beautifully, the only issue I'm having is that the videos inside the div do not play.
Read more >
draggable - HTML: HyperText Markup Language | MDN
The draggable global attribute is an enumerated attribute that indicates whether the element can be dragged, either with native browser ...
Read more >
Why do `video` elements not fire `dragstart` events in Firefox?
I am trying to make a video element draggable. The code below works fine in Chrome, but dragstart event is not firing in...
Read more >
react-beautiful-dnd/draggable.md at master - GitHub
A drag handle is the element that the user interacts with in order to drag a <Draggable /> . A drag handle can...
Read more >
Create a Draggable Element in JavaScript - KIRUPA
You can drag either using your mouse cursor or, if you have access to a touch-friendly device, using your fingers. If all works...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found