Skip to content

Commit

Permalink
Fix horizontal scrolling when press the shift key
Browse files Browse the repository at this point in the history
Fix #2394.
PR #2376 made an incorrect fix to #2358 and #2335, and this PR simply revert changes in `code.c` back to previous version.
  • Loading branch information
Wang-Yue authored Dec 9, 2023
1 parent 6a54f1c commit 7f4a5ea
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 7f4a5ea

Please sign in to comment.