Skip to content

Commit

Permalink
make sure focusedCell is correct by the time onSelectCell is fired
Browse files Browse the repository at this point in the history
  • Loading branch information
dk committed Nov 18, 2024
1 parent 00e1f34 commit 39d7b58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Prima/Grids.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1722,10 +1722,10 @@ sub focusedCell
my @o = @{$self-> {focusedCell}};
return if $o[0] == $f[0] && $o[1] == $f[1];

$self-> notify(q(SelectCell), @f);
my @old = $self-> get_screen_cell_info( @o);
my @new = $self-> get_screen_cell_info( @f);
@{$self-> {focusedCell}} = @f;
$self-> notify(q(SelectCell), @f);

if ( $new[gsci::V_FULL ]) {
# the new cell is fully visible, need no scrolling
Expand Down

0 comments on commit 39d7b58

Please sign in to comment.