Преглед на файлове

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.
Andreas Kling преди 6 години
родител
ревизия
8a91b90258
променени са 1 файла, в които са добавени 1 реда и са изтрити 2 реда
  1. 1 2
      Libraries/LibGUI/GTableView.cpp

+ 1 - 2
Libraries/LibGUI/GTableView.cpp

@@ -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;
             }