Commit 2295af9
fix: remove passive:true from event listener patch (#98)
Removes the `passive:true` option which breaks `preventDefault` for drag
and drop in angular.
To reproduce,
1. Clone the angular example repo:
```shell
git clone [email protected]:aptlin/angular-scratchpad.git rakesh
```
2. Add ` "dev:rakesh": "yarn turbo run dev --filter rakesh... --filter
frontend...",` to `scripts` and `rakesh` to `workspaces` in the
highlight package.json
3. Run `yarn dev:rakesh` with and without this change.1 parent 8954564 commit 2295af9
File tree
3 files changed
+10
-6
lines changed- packages
- rrweb-snapshot/src
- rrweb/src
- record/observers/canvas
3 files changed
+10
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1394 | 1394 | | |
1395 | 1395 | | |
1396 | 1396 | | |
1397 | | - | |
| 1397 | + | |
1398 | 1398 | | |
1399 | 1399 | | |
1400 | 1400 | | |
1401 | 1401 | | |
1402 | 1402 | | |
1403 | 1403 | | |
1404 | | - | |
| 1404 | + | |
1405 | 1405 | | |
1406 | 1406 | | |
1407 | 1407 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
55 | 59 | | |
56 | 60 | | |
57 | 61 | | |
| |||
60 | 64 | | |
61 | 65 | | |
62 | 66 | | |
63 | | - | |
| 67 | + | |
64 | 68 | | |
65 | 69 | | |
66 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
0 commit comments