You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any instance of draggable, sortable and droppable that is a direct or indirect child of .content doesn't look quite right if --scale-factor is not equal to 1. When dropping items in the sortable it drops the dragged item at the expected position, but the position of the "helper" element does not stay attached to the cursor's position. See images below:
The draggable. Items have containment on the direct parent element and I use helper: 'original'.
When starting to drag the first item, the top attribute of the helper is multiplied by the scaling of a parent element, resulting in the helper item (in red) being offset from my cursor.
The distance from the cursor and the helper element gets bigger the further down the list I go.
The discrepancy between jQuery UI being able to figure out the correct position of the drop target but not the position of the helper suggests to me there is a bug in how the translation of the helper is calculated. Maybe this can be fixed or an option can be added to the API for scale, so jQueryUI can adjust the positioning of the helper accordingly.
Observed with:
jQueryUI version 1.13.2 and 1.13.3
Chrome v125 and macOS Safari 17.5
The text was updated successfully, but these errors were encountered:
Hello,
For our webapp has a feature which allows the user to "present" their content for a big screen. For this we apply this CSS
Any instance of draggable, sortable and droppable that is a direct or indirect child of
.content
doesn't look quite right if--scale-factor
is not equal to1
. When dropping items in the sortable it drops the dragged item at the expected position, but the position of the "helper" element does not stay attached to the cursor's position. See images below:The draggable. Items have
containment
on the direct parent element and I usehelper: 'original'
.When starting to drag the first item, the
top
attribute of the helper is multiplied by the scaling of a parent element, resulting in the helper item (in red) being offset from my cursor.The distance from the cursor and the helper element gets bigger the further down the list I go.
The discrepancy between jQuery UI being able to figure out the correct position of the drop target but not the position of the helper suggests to me there is a bug in how the translation of the helper is calculated. Maybe this can be fixed or an option can be added to the API for
scale
, so jQueryUI can adjust the positioning of the helper accordingly.Observed with:
The text was updated successfully, but these errors were encountered: