Still not ideal, but we need to ship and this is more than reasonable
Unified · Split
| @@ -1369,7 +1369,7 @@ impl EditorElement { · 1368 unmodified lines | ||
| 1369 | 1369 | { |
| 1370 | 1370 | let y = mouse_position.y; |
| 1371 | 1371 | let new_y = event.position.y; |
| 1372 | − if thumb_top < y && y < thumb_bottom { | |
| 1372 | + if (track_bounds.top()..track_bounds.bottom()).contains(&y) { | |
| 1373 | 1373 | let mut position = editor.scroll_position(cx); |
| 1374 | 1374 | position.y += (new_y - y) * (max_row as f32) / height; |
| 1375 | 1375 | if position.y < 0.0 { |