mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-26 22:38:51 +00:00
GTableView: Fix column resize cursor not showing up in scrolled tables
If the table was scrolled somewhat, we'd stop showing the resize cursor when hovering the mouse cursor between two table column headers.
This commit is contained in:
parent
8031960541
commit
8a91b90258
Notes:
sideshowbarker
2024-07-19 12:38:28 +09:00
Author: https://github.com/awesomekling
Commit: 8a91b90258
1 changed files with 1 additions and 2 deletions
|
@ -214,10 +214,9 @@ void GTableView::mousemove_event(GMouseEvent& event)
|
|||
return;
|
||||
}
|
||||
|
||||
auto adjusted_position = this->adjusted_position(event.position());
|
||||
if (event.buttons() == 0) {
|
||||
for (int i = 0; i < model()->column_count(); ++i) {
|
||||
if (column_resize_grabbable_rect(i).contains(adjusted_position)) {
|
||||
if (column_resize_grabbable_rect(i).contains(event.position())) {
|
||||
window()->set_override_cursor(GStandardCursor::ResizeHorizontal);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue