Add dragging offset exception for Firefox
This commit is contained in:
parent
052c602742
commit
85d9de60ca
1 changed files with 4 additions and 2 deletions
|
@ -122,9 +122,11 @@ export default function HomepageSort(props: Props) {
|
|||
// $FlowFixMe
|
||||
draggableProvided.draggableProps.style.left = draggedItemRef.offsetLeft;
|
||||
// $FlowFixMe
|
||||
if (navigator.userAgent.toLowerCase().indexOf('firefox') === -1) {
|
||||
draggableProvided.draggableProps.style.top =
|
||||
draggableProvided.draggableProps.style.top - document.getElementsByClassName('modal')[0].offsetTop;
|
||||
}
|
||||
}
|
||||
return (
|
||||
<div
|
||||
className="homepage-sort__entry"
|
||||
|
|
Loading…
Reference in a new issue