bevacqua / dragula

:ok_hand: Drag and drop so simple it hurts
https://bevacqua.github.io/dragula/
MIT License
21.89k stars 1.97k forks source link

when drag element ,the element height has changed then the offsetY is a wrong num. #583

Closed aibotian closed 3 years ago

aibotian commented 5 years ago

when drag element ,the element height has changed then the offsetY is a wrong num.

aibotian commented 5 years ago

@bevacqua

mostafaebrahimi commented 5 years ago

Please provide more information. Before that consider these information about Dragula working method. When element is in dragging mode Dragula creates new node ( clone child ) and set gu-mirror class to it and working with created element by changing mouseevent. this is gu-mirror class.

.gu-mirror {
  position: fixed !important;
  margin: 0 !important;
  z-index: 9999 !important;
  opacity: 0.8;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
  filter: alpha(opacity=80);
}

and this is a sample created element

<div class="gu-mirror" style="width: 700px; height: 22px; left: 478.5px; top: 307.734px;">Drags don't trigger click events.</div>