react-data-grid.patch32 lines · main
| 1 | diff --git a/lib/bundle.cjs b/lib/bundle.cjs |
| 2 | index 810cb878ffb394df9f17296995a838e08a7d6ccf..4ba752efe1b1de392c3254d1b0d12ab9a637362f 100644 |
| 3 | --- a/lib/bundle.cjs |
| 4 | +++ b/lib/bundle.cjs |
| 5 | @@ -1412,10 +1412,7 @@ function HeaderCell({ |
| 6 | hasDoubleClicked = true; |
| 7 | onColumnResize(column, 'max-content'); |
| 8 | } |
| 9 | - function onLostPointerCapture(event) { |
| 10 | - if (!hasDoubleClicked) { |
| 11 | - onPointerMove(event); |
| 12 | - } |
| 13 | + function onLostPointerCapture() { |
| 14 | currentTarget.removeEventListener('pointermove', onPointerMove); |
| 15 | currentTarget.removeEventListener('dblclick', onDoubleClick); |
| 16 | currentTarget.removeEventListener('lostpointercapture', onLostPointerCapture); |
| 17 | diff --git a/lib/bundle.js b/lib/bundle.js |
| 18 | index ac667d97a43720d1f56995e63ad6556b80d4c4bf..42b6a17f382fffadbb8cdd2d7a6b42235af89ad0 100644 |
| 19 | --- a/lib/bundle.js |
| 20 | +++ b/lib/bundle.js |
| 21 | @@ -1408,10 +1408,7 @@ function HeaderCell({ |
| 22 | hasDoubleClicked = true; |
| 23 | onColumnResize(column, 'max-content'); |
| 24 | } |
| 25 | - function onLostPointerCapture(event) { |
| 26 | - if (!hasDoubleClicked) { |
| 27 | - onPointerMove(event); |
| 28 | - } |
| 29 | + function onLostPointerCapture() { |
| 30 | currentTarget.removeEventListener('pointermove', onPointerMove); |
| 31 | currentTarget.removeEventListener('dblclick', onDoubleClick); |
| 32 | currentTarget.removeEventListener('lostpointercapture', onLostPointerCapture); |