Commit 964ddc2
committed
Fix: Ensure node name is always included in onPanEnd and onRotationEnd callbacks
- Fixed serializeLocalTransformation to always include node name (non-optional)
- Changed transform array from [Float?] to [Float] to prevent nil values
- Added guard clause to prevent crashes when node is nil
- Store node reference before clearing panningNode to prevent race conditions
- Fixes issue where Dart code couldn't access node name from call.arguments["name"]1 parent 9449e0a commit 964ddc2
2 files changed
Lines changed: 4 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
626 | 626 | | |
627 | 627 | | |
628 | 628 | | |
629 | | - | |
630 | | - | |
631 | 629 | | |
632 | 630 | | |
633 | 631 | | |
634 | | - | |
635 | | - | |
636 | | - | |
| 632 | + | |
637 | 633 | | |
638 | 634 | | |
639 | 635 | | |
| |||
692 | 688 | | |
693 | 689 | | |
694 | 690 | | |
695 | | - | |
696 | | - | |
697 | 691 | | |
698 | 692 | | |
699 | 693 | | |
700 | | - | |
701 | | - | |
702 | | - | |
| 694 | + | |
703 | 695 | | |
704 | 696 | | |
705 | 697 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
| 45 | + | |
51 | 46 | | |
52 | | - | |
| 47 | + | |
53 | 48 | | |
54 | 49 | | |
55 | 50 | | |
| |||
0 commit comments