Commit b861204
committed
fix(mdviewer): prevent CM scroll jump from cursor activity feedback loop
Set _scrollFromCM flag for all CM-initiated viewer scrolls (both
cursor-based and scroll-sync), not just fromScroll. This prevents the
viewer's scroll event from sending mdviewrScrollSync back to CM during
the 200ms suppression window. Reverts focus-based scroll blocking in
favor of proper feedback loop prevention.1 parent 9679c58 commit b861204
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
935 | 935 | | |
936 | 936 | | |
937 | 937 | | |
| 938 | + | |
938 | 939 | | |
939 | 940 | | |
940 | 941 | | |
| |||
953 | 954 | | |
954 | 955 | | |
955 | 956 | | |
| 957 | + | |
| 958 | + | |
956 | 959 | | |
957 | 960 | | |
958 | | - | |
959 | 961 | | |
960 | | - | |
961 | 962 | | |
962 | 963 | | |
963 | 964 | | |
964 | 965 | | |
965 | 966 | | |
966 | 967 | | |
967 | 968 | | |
| 969 | + | |
968 | 970 | | |
969 | 971 | | |
970 | 972 | | |
| |||
0 commit comments