@dnd-kit/dom 0.0.7 → 0.0.8-beta-20250202033300
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs +24 -17
- package/index.cjs.map +1 -1
- package/index.js +24 -17
- package/index.js.map +1 -1
- package/package.json +5 -5
package/index.cjs
CHANGED
|
@@ -1231,24 +1231,27 @@ var _PointerSensor = class _PointerSensor extends abstract.Sensor {
|
|
|
1231
1231
|
}
|
|
1232
1232
|
}
|
|
1233
1233
|
const ownerDocument = utilities.getDocument(event.target);
|
|
1234
|
-
const unbindListeners = this.listeners.bind(
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1234
|
+
const unbindListeners = this.listeners.bind(
|
|
1235
|
+
ownerDocument.defaultView,
|
|
1236
|
+
[
|
|
1237
|
+
{
|
|
1238
|
+
type: "pointermove",
|
|
1239
|
+
listener: (event2) => this.handlePointerMove(event2, source, options)
|
|
1240
|
+
},
|
|
1241
|
+
{
|
|
1242
|
+
type: "pointerup",
|
|
1243
|
+
listener: this.handlePointerUp,
|
|
1244
|
+
options: {
|
|
1245
|
+
capture: true
|
|
1246
|
+
}
|
|
1247
|
+
},
|
|
1248
|
+
{
|
|
1249
|
+
// Cancel activation if there is a competing Drag and Drop interaction
|
|
1250
|
+
type: "dragstart",
|
|
1251
|
+
listener: isNativeDraggable ? this.handleCancel : preventDefault
|
|
1244
1252
|
}
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
// Cancel activation if there is a competing Drag and Drop interaction
|
|
1248
|
-
type: "dragstart",
|
|
1249
|
-
listener: isNativeDraggable ? this.handleCancel : preventDefault
|
|
1250
|
-
}
|
|
1251
|
-
]);
|
|
1253
|
+
]
|
|
1254
|
+
);
|
|
1252
1255
|
const cleanup = () => {
|
|
1253
1256
|
var _a3;
|
|
1254
1257
|
setTimeout(unbindListeners);
|
|
@@ -1345,6 +1348,10 @@ var _PointerSensor = class _PointerSensor extends abstract.Sensor {
|
|
|
1345
1348
|
{
|
|
1346
1349
|
type: "keydown",
|
|
1347
1350
|
listener: this.handleKeyDown
|
|
1351
|
+
},
|
|
1352
|
+
{
|
|
1353
|
+
type: "lostpointercapture",
|
|
1354
|
+
listener: this.handlePointerUp
|
|
1348
1355
|
}
|
|
1349
1356
|
]);
|
|
1350
1357
|
ownerDocument.body.setPointerCapture(event.pointerId);
|