js-draw 1.2.0 → 1.2.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.
@@ -1,3 +1,3 @@
1
1
  export default {
2
- number: '1.2.0',
2
+ number: '1.2.2',
3
3
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "js-draw",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "Draw pictures using a pen, touchscreen, or mouse! JS-draw is a drawing library for JavaScript and TypeScript. ",
5
5
  "types": "./dist/mjs/lib.d.ts",
6
6
  "main": "./dist/cjs/lib.js",
@@ -64,7 +64,7 @@
64
64
  "postpack": "ts-node tools/copyREADME.ts revert"
65
65
  },
66
66
  "dependencies": {
67
- "@js-draw/math": "^1.2.0",
67
+ "@js-draw/math": "^1.2.2",
68
68
  "@melloware/coloris": "0.21.0"
69
69
  },
70
70
  "devDependencies": {
@@ -87,5 +87,5 @@
87
87
  "freehand",
88
88
  "svg"
89
89
  ],
90
- "gitHead": "3e77c7d833ecdc13bcb57e905280ba547629680a"
90
+ "gitHead": "ced98ae289f299c44b54515571d0087aa6d32cdc"
91
91
  }
@@ -57,6 +57,9 @@
57
57
  border: none;
58
58
  box-shadow: 0px 0px 2px var(--shadow-color);
59
59
 
60
+ user-select: none;
61
+ -webkit-user-select: none;
62
+
60
63
  transition: background-color 0.15s ease, box-shadow 0.25s ease, opacity 0.2s ease;
61
64
  }
62
65
 
@@ -42,6 +42,10 @@
42
42
  align-items: center;
43
43
  justify-content: center;
44
44
  padding: 4px;
45
+
46
+ // Prevent long pressing from selecting the label
47
+ user-select: none;
48
+ -webkit-user-select: none;
45
49
  }
46
50
 
47
51
  .icon {
@@ -53,6 +57,7 @@
53
57
  &.checked {
54
58
  background-color: var(--selection-background-color);
55
59
  color: var(--selection-foreground-color);
60
+ --icon-color: var(--selection-foreground-color);
56
61
  }
57
62
  }
58
63