Commit 90a893a
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 d5c5312 commit 90a893a
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 | |
|---|---|---|---|
| |||
1374 | 1374 | | |
1375 | 1375 | | |
1376 | 1376 | | |
1377 | | - | |
| 1377 | + | |
1378 | 1378 | | |
1379 | 1379 | | |
1380 | 1380 | | |
1381 | 1381 | | |
1382 | 1382 | | |
1383 | 1383 | | |
1384 | | - | |
| 1384 | + | |
1385 | 1385 | | |
1386 | 1386 | | |
1387 | 1387 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
53 | 57 | | |
54 | 58 | | |
55 | 59 | | |
| |||
58 | 62 | | |
59 | 63 | | |
60 | 64 | | |
61 | | - | |
| 65 | + | |
62 | 66 | | |
63 | 67 | | |
64 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
0 commit comments