Commit 724d560
authored
Merge pull request #782 from jasongrout/splitpanel-pointercapture
In #760, it was reported that dragging a handle near an iframe can lose the drag events when the mouse goes over the iframe. This attempts to use the pointer capture semantics to ensure that the drag events continue to go to the splitpanel or dockpanel. It is similar to the solution at eclipse-theia/theia#15643.
We make the pointer capture optional to de-risk releasing this in a patch release and to make the testing (where we manually construct pointer events) still pass.2 files changed
Lines changed: 48 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
721 | 721 | | |
722 | 722 | | |
723 | 723 | | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
724 | 735 | | |
725 | 736 | | |
726 | 737 | | |
| |||
729 | 740 | | |
730 | 741 | | |
731 | 742 | | |
732 | | - | |
| 743 | + | |
733 | 744 | | |
734 | 745 | | |
735 | 746 | | |
| |||
784 | 795 | | |
785 | 796 | | |
786 | 797 | | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
787 | 804 | | |
788 | 805 | | |
789 | 806 | | |
| |||
1466 | 1483 | | |
1467 | 1484 | | |
1468 | 1485 | | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
| 1490 | + | |
1469 | 1491 | | |
1470 | 1492 | | |
1471 | 1493 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
265 | 276 | | |
266 | 277 | | |
267 | 278 | | |
| |||
275 | 286 | | |
276 | 287 | | |
277 | 288 | | |
278 | | - | |
| 289 | + | |
279 | 290 | | |
280 | 291 | | |
281 | 292 | | |
| |||
326 | 337 | | |
327 | 338 | | |
328 | 339 | | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
329 | 346 | | |
330 | 347 | | |
| 348 | + | |
| 349 | + | |
331 | 350 | | |
332 | 351 | | |
333 | 352 | | |
| |||
471 | 490 | | |
472 | 491 | | |
473 | 492 | | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
474 | 498 | | |
475 | 499 | | |
476 | 500 | | |
| |||
0 commit comments