Skip to content

Commit

Permalink
fix: call dxpointercancel after dragstart for safari
Browse files Browse the repository at this point in the history
  • Loading branch information
chaosmirage committed Dec 13, 2024
1 parent b001f56 commit f4f5a40
Showing 1 changed file with 70 additions and 0 deletions.
70 changes: 70 additions & 0 deletions packages/devextreme/bug.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<link
rel="stylesheet"
href="https://cdn3.devexpress.com/jslib/24.1.6/css/dx.material.blue.light.css"
/>
<style>
#draggable {
background-color: red;
width: 100px;
height: 100px;
}

#target {
background-color: #555;
width: 100px;
height: 100px;
}
</style>
</head>
<body>
<div class="dx-viewport demo-container">
<div id="draggable" draggable="true"></div>
<div id="grid"></div>
<div id="list"></div>

<div id="target"></div>
</div>
<script src="./artifacts/js/jquery.js"></script>
<script src="./artifacts/js/dx.all.debug.js"></script>
<script>
$(() => {
// $("#grid").dxDataGrid({
// dataSource: data,
// keyExpr: "id",
// showBorders: true,
// hoverStateEnabled: true,
// });

// $("#list").dxList({
// dataSource: data,
// });

document
.getElementById("draggable")
.addEventListener("dragstart", (event) => {
console.log("dragstart");
});

DevExpress.events.on($("#target"), "dxhoverstart", () => {
console.log("dxhoverstart");
});

DevExpress.events.on($("#target"), "dxhoverend", () => {
console.log("dxhoverend");
});
});

const data = [
{ id: 1, text: "Item 1" },
{ id: 2, text: "Item 2" },
{ id: 3, text: "Item 3" },
];
</script>
</body>
</html>

0 comments on commit f4f5a40

Please sign in to comment.