Skip to content

Commit

Permalink
Merge pull request #2400 from Wang-Yue/patch-9
Browse files Browse the repository at this point in the history
Fix horizontal scrolling when press the shift key
  • Loading branch information
nesbox authored Dec 10, 2023
2 parents 6a54f1c + 7f4a5ea commit fc831f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/studio/editors/code.c
Original file line number Diff line number Diff line change
Expand Up @@ -3122,7 +3122,7 @@ static void textEditTick(Code* code)
tic_point scroll = {input->mouse.scrollx, input->mouse.scrolly};

if(tic_api_key(tic, tic_key_shift))
scroll.x = -scroll.y;
scroll.x = scroll.y;

s32* val = scroll.x ? &code->scroll.x : scroll.y ? &code->scroll.y : NULL;

Expand Down

0 comments on commit fc831f9

Please sign in to comment.