cm-chessboard 8.0.1 → 8.0.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cm-chessboard",
3
- "version": "8.0.1",
3
+ "version": "8.0.2",
4
4
  "description": "A JavaScript chessboard which is lightweight, ES6 module based, responsive, SVG rendered and without dependencies.",
5
5
  "keywords": [
6
6
  "chess",
@@ -242,10 +242,6 @@ export class VisualMoveInput {
242
242
  if (!(e.type === "mousedown" && e.button === 0 || e.type === "touchstart")) {
243
243
  return
244
244
  }
245
- if(e.type === "mousedown") { // another try to prevent strange safari desktop select all bug
246
- e.preventDefault()
247
- e.stopPropagation()
248
- }
249
245
  const square = e.target.getAttribute("data-square")
250
246
  if (!square) { // pointer on square
251
247
  return
@@ -317,8 +313,6 @@ export class VisualMoveInput {
317
313
  pageX = e.pageX
318
314
  pageY = e.pageY
319
315
  target = e.target
320
- e.preventDefault() // trying to prevent strange safari desktop bug, selecting the whole page on drag
321
- e.stopPropagation()
322
316
  } else if (e.type === "touchmove") {
323
317
  clientX = e.touches[0].clientX
324
318
  clientY = e.touches[0].clientY