Skip to content

Commit b68a3ad

Browse files
committed
draggable.toolbar.SortZone: no longer needs to adjust pointer events #6331
1 parent ae343da commit b68a3ad

2 files changed

Lines changed: 17 additions & 20 deletions

File tree

src/draggable/grid/header/toolbar/SortZone.mjs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,12 @@ class SortZone extends BaseSortZone {
100100
rect.y = rect.y - ownerRect.y - 1;
101101

102102
item.style = Object.assign(itemStyle, {
103-
height : `${rect.height}px`,
104-
left : `${rect.left}px`,
105-
margin : '1px',
106-
pointerEvents: 'none',
107-
position : 'absolute',
108-
top : `${rect.top}px`,
109-
width : `${rect.width}px`
103+
height : `${rect.height}px`,
104+
left : `${rect.left}px`,
105+
margin : '1px',
106+
position: 'absolute',
107+
top : `${rect.top}px`,
108+
width : `${rect.width}px`
110109
})
111110
});
112111

src/draggable/toolbar/SortZone.mjs

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,12 @@ class SortZone extends DragZone {
9999
itemStyle = item.style || {};
100100

101101
Object.assign(itemStyle, {
102-
height : itemStyles[index].height || null,
103-
left : null,
104-
margin : null,
105-
pointerEvents: null,
106-
position : null,
107-
top : null,
108-
width : itemStyles[index].width || null
102+
height : itemStyles[index].height || null,
103+
left : null,
104+
margin : null,
105+
position: null,
106+
top : null,
107+
width : itemStyles[index].width || null
109108
});
110109

111110
if (index === me.startIndex) {
@@ -227,12 +226,11 @@ class SortZone extends DragZone {
227226
rect = itemRects[index];
228227

229228
item.style = Object.assign(itemStyle, {
230-
height : `${rect.height}px`,
231-
left : `${rect.left}px`,
232-
pointerEvents: 'none',
233-
position : 'absolute',
234-
top : `${rect.top}px`,
235-
width : `${rect.width}px`
229+
height : `${rect.height}px`,
230+
left : `${rect.left}px`,
231+
position: 'absolute',
232+
top : `${rect.top}px`,
233+
width : `${rect.width}px`
236234
})
237235
});
238236

0 commit comments

Comments
 (0)