Commit 7721167
Fix line editing interface when annotation already selected (#342)
* Initial plan
* Fix line editing interface to react when annotation already selected
- Call applyCursorBehavior() in startLineEditing() if annotation already selected
- Call applyCursorBehavior() in toggleAddLines() when annotation already selected
- Call applyCursorBehavior() in toggleMergeLines() when annotation already selected
- Prevent duplicate event listener attachment with _tpenListenersAttached flag
Co-authored-by: cubap <1119165+cubap@users.noreply.github.com>
* Improve event listener tracking using WeakSet
- Replace DOM property _tpenListenersAttached with WeakSet
- Add private field #elementsWithListeners to track elements
- This prevents modifying DOM elements and avoids potential memory leaks
Co-authored-by: cubap <1119165+cubap@users.noreply.github.com>
* Add clarifying comment for mouseStart/mouseFinish variables
Co-authored-by: cubap <1119165+cubap@users.noreply.github.com>
* Add clarifying comment about ruler usage in merge mode
Co-authored-by: cubap <1119165+cubap@users.noreply.github.com>
* unused
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: cubap <1119165+cubap@users.noreply.github.com>
Co-authored-by: cubap <cubap@slu.edu>
Co-authored-by: Bryan Haberberger <bryan.j.haberberger@slu.edu>1 parent c7074b1 commit 7721167
1 file changed
Lines changed: 22 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1081 | 1081 | | |
1082 | 1082 | | |
1083 | 1083 | | |
1084 | | - | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
1085 | 1089 | | |
1086 | 1090 | | |
1087 | 1091 | | |
1088 | 1092 | | |
1089 | 1093 | | |
| 1094 | + | |
1090 | 1095 | | |
1091 | 1096 | | |
1092 | 1097 | | |
| |||
1097 | 1102 | | |
1098 | 1103 | | |
1099 | 1104 | | |
1100 | | - | |
1101 | | - | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
1102 | 1112 | | |
1103 | 1113 | | |
1104 | 1114 | | |
| |||
1193 | 1203 | | |
1194 | 1204 | | |
1195 | 1205 | | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
1196 | 1210 | | |
1197 | 1211 | | |
1198 | 1212 | | |
| |||
1431 | 1445 | | |
1432 | 1446 | | |
1433 | 1447 | | |
1434 | | - | |
1435 | | - | |
1436 | 1448 | | |
1437 | 1449 | | |
1438 | 1450 | | |
| |||
1452 | 1464 | | |
1453 | 1465 | | |
1454 | 1466 | | |
| 1467 | + | |
| 1468 | + | |
| 1469 | + | |
| 1470 | + | |
| 1471 | + | |
1455 | 1472 | | |
1456 | 1473 | | |
1457 | 1474 | | |
| |||
0 commit comments