-
Notifications
You must be signed in to change notification settings - Fork 600
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: call
dxpointercancel
after dragstart
for safari
- Loading branch information
1 parent
8433906
commit 9faad2a
Showing
1 changed file
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |