Commit 9449e0a
committed
Fix: Ensure node name is included in onPanEnd and onRotationEnd callbacks
- Fixed serializeLocalTransformation to handle nil nodes gracefully
- Changed transform array from optional to non-optional Float array
- Changed node name from optional to non-optional String
- Store node reference before clearing panningNode to prevent nil access
- Only invoke onPanEnd/onRotationEnd if node exists
This fixes the issue where call.arguments["name"] was nil, causing
the Dart callback handler to fail silently in the catch block.1 parent 7e5fd59 commit 9449e0a
2 files changed
Lines changed: 17 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
626 | 626 | | |
627 | 627 | | |
628 | 628 | | |
| 629 | + | |
| 630 | + | |
629 | 631 | | |
630 | 632 | | |
631 | 633 | | |
632 | | - | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
633 | 637 | | |
634 | 638 | | |
635 | 639 | | |
| |||
688 | 692 | | |
689 | 693 | | |
690 | 694 | | |
| 695 | + | |
| 696 | + | |
691 | 697 | | |
692 | 698 | | |
693 | 699 | | |
694 | | - | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
695 | 703 | | |
696 | 704 | | |
697 | 705 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
46 | 51 | | |
47 | | - | |
| 52 | + | |
48 | 53 | | |
49 | 54 | | |
50 | 55 | | |
| |||
0 commit comments