Fix scroll bar click and drag on hidpi

This commit is contained in:
Jeremy Soller 2023-11-13 15:07:23 -07:00
parent aa1d4dbd63
commit 6938eeeaaa

View file

@ -508,7 +508,7 @@ where
y: y as i32,
});
state.dragging = Some(Dragging::Buffer);
} else if scrollbar_rect.contains(Point::new(x, y)) {
} else if scrollbar_rect.contains(Point::new(x / scale_factor, y / scale_factor)) {
state.dragging = Some(Dragging::Scrollbar {
start_y: y,
start_scroll: editor.buffer().scroll(),