Skip to content

Commit

Permalink
#4349 - Macro: Selection does not work in sequence editing with Shift…
Browse files Browse the repository at this point in the history
…+Up/Down arrow combination
  • Loading branch information
tmrr13 committed Apr 22, 2024
1 parent d474ea2 commit cb89c5d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,10 @@ export class SequenceMode extends BaseMode {
public mousedown(event: MouseEvent) {
const eventData = event.target?.__data__;
const isEventOnSequenceItem = eventData instanceof BaseSequenceItemRenderer;
console.log(this.isEditMode);

if (this.isEditMode && isEventOnSequenceItem && !event.shiftKey) {
if (this.isEditMode) {
SequenceRenderer.resetLastCaretPosition();
}
if (this.isEditMode && isEventOnSequenceItem && !event.shiftKey) {
SequenceRenderer.setCaretPositionBySequenceItemRenderer(
eventData as BaseSequenceItemRenderer,
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -333,10 +333,10 @@ export class SequenceRenderer {

for (let i = 0; i < finalArray.length; i++) {
const subArray = finalArray[i];
if (subArray.length > 30) {
if (subArray.length > this.NUMBER_OF_SYMBOLS_IN_ROW) {
const newSubArrays: Array<SubChainNode[]> = [];
while (subArray.length > 0) {
newSubArrays.push(subArray.splice(0, 30));
newSubArrays.push(subArray.splice(0, this.NUMBER_OF_SYMBOLS_IN_ROW));
}
finalArray.splice(i, 1, ...newSubArrays);
i += newSubArrays.length - 1;
Expand Down

0 comments on commit cb89c5d

Please sign in to comment.