@lvce-editor/virtual-dom 3.6.0 → 4.0.0

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -692,7 +692,7 @@ const applyDragInfoMaybe = event => {
692
692
  };
693
693
 
694
694
  const PointerMove = 'pointermove';
695
- const PointerUp = 'pointerup';
695
+ const lostpointercapture = 'lostpointercapture';
696
696
 
697
697
  let ignore = false;
698
698
  const startIgnore = () => {
@@ -817,8 +817,7 @@ const applyPointerTrackMaybe = (info, map, event) => {
817
817
  target.setPointerCapture(pointerId);
818
818
  const [pointerMoveKey, pointerUpKey] = trackPointerEvents;
819
819
  target.addEventListener(PointerMove, map[pointerMoveKey]);
820
- // TODO use pointerlost event instead
821
- target.addEventListener(PointerUp, map[pointerUpKey]);
820
+ target.addEventListener(lostpointercapture, map[pointerUpKey]);
822
821
  };
823
822
  const createFn = (info, map) => {
824
823
  const fn = event => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/virtual-dom",
3
- "version": "3.6.0",
3
+ "version": "4.0.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/lvce-editor/virtual-dom.git"