Skip to content

Commit

Permalink
#226 mouse follow offby1 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesholdenmusic committed Jan 25, 2025
1 parent c50e4b4 commit 5623af4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/mouse.js
Original file line number Diff line number Diff line change
Expand Up @@ -990,7 +990,7 @@ function omouse(x,y,leftbutton,ctrl,shift,caps,alt,e){
var crn = automap.groups.indexOf(r+1);
if(crn==-1)crn=automap.groups.length;
//only move the controller offset if the row you're over isn't shown
if((cr<automap.offset_c)||(crn>=(automap.offset_c+automap.c_rows))){
if((cr<automap.offset_c)||(crn>(automap.offset_c+automap.c_rows))){
r = Math.min(cr,automap.offset_range_c);
automap.offset_c = r;
note_poly.message("setvalue", automap.available_c, "automap_offset", automap.offset_c * automap.c_cols );
Expand Down

0 comments on commit 5623af4

Please sign in to comment.