@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.
- package/dist/index.js +2 -3
- 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
|
|
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
|
-
|
|
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 => {
|