Skip to content

Commit 8a91b90

Browse files
committed
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.
1 parent 8031960 commit 8a91b90

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Libraries/LibGUI/GTableView.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,9 @@ void GTableView::mousemove_event(GMouseEvent& event)
214214
return;
215215
}
216216

217-
auto adjusted_position = this->adjusted_position(event.position());
218217
if (event.buttons() == 0) {
219218
for (int i = 0; i < model()->column_count(); ++i) {
220-
if (column_resize_grabbable_rect(i).contains(adjusted_position)) {
219+
if (column_resize_grabbable_rect(i).contains(event.position())) {
221220
window()->set_override_cursor(GStandardCursor::ResizeHorizontal);
222221
return;
223222
}

0 commit comments

Comments
 (0)