cm-chessboard 7.8.2 → 7.8.4
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.
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
</head>
|
|
29
29
|
<body>
|
|
30
30
|
<h1><a href="../../">cm-chessboard</a></h1>
|
|
31
|
-
<h2>Example:
|
|
32
|
-
<p>
|
|
31
|
+
<h2>Example: HtmlLayer Extension</h2>
|
|
32
|
+
<p>Use this extension to add a layer over the board which contains HTML.</p>
|
|
33
33
|
<div class="board" id="board"></div>
|
|
34
34
|
<div>
|
|
35
35
|
<button onclick="window.addLayer()">Add HTML Layer</button>
|
package/package.json
CHANGED
|
@@ -314,6 +314,7 @@ export class VisualMoveInput {
|
|
|
314
314
|
pageX = e.pageX
|
|
315
315
|
pageY = e.pageY
|
|
316
316
|
target = e.target
|
|
317
|
+
e.preventDefault() // trying to prevent strange safari desktop bug, selecting the whole page on drag
|
|
317
318
|
} else if (e.type === "touchmove") {
|
|
318
319
|
clientX = e.touches[0].clientX
|
|
319
320
|
clientY = e.touches[0].clientY
|