Commit c4aec64
committed
refactor(P1-1): consolidate canvas event listeners in GUIAdapter
- Remove initEventListeners() from CircuitRenderer (was duplicate)
- GUIAdapter is now single owner of all canvas listeners
- Wire wheel→zoom, MMB pan, hover, dblclick, mouseleave through GUIAdapter
- Clean up dispose() to use stable _boundPerformRender reference
- Remove dead panStartX/panStartY code from GUIAdapter
448 tests passing, build OK.1 parent 6a4fd75 commit c4aec64
2 files changed
Lines changed: 23 additions & 34 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
347 | | - | |
348 | | - | |
| 347 | + | |
| 348 | + | |
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
| |||
545 | 545 | | |
546 | 546 | | |
547 | 547 | | |
548 | | - | |
549 | | - | |
| 548 | + | |
550 | 549 | | |
551 | 550 | | |
552 | 551 | | |
| |||
633 | 632 | | |
634 | 633 | | |
635 | 634 | | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
636 | 639 | | |
637 | 640 | | |
638 | 641 | | |
| |||
684 | 687 | | |
685 | 688 | | |
686 | 689 | | |
| 690 | + | |
687 | 691 | | |
688 | 692 | | |
689 | 693 | | |
| |||
762 | 766 | | |
763 | 767 | | |
764 | 768 | | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
765 | 780 | | |
766 | 781 | | |
767 | 782 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
112 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
113 | 114 | | |
114 | 115 | | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | 116 | | |
134 | 117 | | |
135 | 118 | | |
| |||
609 | 592 | | |
610 | 593 | | |
611 | 594 | | |
612 | | - | |
613 | | - | |
614 | | - | |
615 | | - | |
616 | | - | |
617 | | - | |
618 | | - | |
619 | | - | |
620 | 595 | | |
621 | | - | |
| 596 | + | |
622 | 597 | | |
623 | 598 | | |
624 | 599 | | |
625 | 600 | | |
626 | 601 | | |
627 | 602 | | |
628 | | - | |
629 | 603 | | |
630 | 604 | | |
631 | 605 | | |
| |||
0 commit comments