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.

Safari Browser: Drag Preview Element not visible, causes confusion while dragging.

See original GitHub issue

Problem:

In Safari browser when an element is dragged, the drag preview is not displayed. It works fine in all other browsers i.e. Chrome, Firefox, Opera, Edge, IE11. Problem is only with Safari browser.

Safari version 12.1.2 on Mac Mojave 10.14.6

JSBin/JSFiddle demonstrating the problem:

Providing a Video Demo since the application is not yet deployed. The video shows a comparison of the experience in Chrome vs Safari.


I am using the latest 1.10.1 version of Sortable.js


I have already tried various options like dataTransfer.setDragImage but none of the solutions work.

Request yout to please provide some insights as to what might be going wrong / Is this something that needs to be fixed in the library ?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
kcak11commented, Mar 17, 2020

@kcak11 I tried the forceFallback option, it worked, no problem

Unfortunately, in my case on Chrome & Safari, the drag-n-drop is completely broken (on both browsers) when I use the forceFallback: true option.

One thing to note here is that the elements under drag-n-drop are placed in an iframe in a display:flex layout. Does that make any difference in Safari ?

0reactions
flycjcommented, Mar 17, 2020

@kcak11 I tried the forceFallback option, it worked, no problem

Read more comments on GitHub >

github_iconTop Results From Across the Web

html div dragging visibility not able on safari browser
The issue was caused by not using Drag effect attribute for drag ... had few attributes that makes the dragged HTML element go...
Read more >
Safari Technology Preview Release Notes - Apple Developer
Safari Technology Preview Release 147 is now available for download for macOS Monterey 12.3 or later and macOS Ventura beta. Updates to Safari...
Read more >
The HTML5 drag and drop disaster - QuirksBlog - QuirksMode
The drop event fires when the user drops an element he's dragging. And, you see, dropping the element you're dragging is the POINT...
Read more >
Cross Browser HTML5 Drag and Drop - User Agent Man
Built-in Browser Support: HTML5 Drag and Drop is supported in Firefox ... the mouse pointer when the object is being dragged, while Safari...
Read more >
HTML Drag and Drop—What a Drag - Cay Horstmann
But that might be embarrassing when the element is dragged into another app. ... It took Safari on iOS ages to support HTML...
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