Fix scroll bar click and drag on hidpi
This commit is contained in:
parent
aa1d4dbd63
commit
6938eeeaaa
1 changed files with 1 additions and 1 deletions
|
|
@ -508,7 +508,7 @@ where
|
||||||
y: y as i32,
|
y: y as i32,
|
||||||
});
|
});
|
||||||
state.dragging = Some(Dragging::Buffer);
|
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 {
|
state.dragging = Some(Dragging::Scrollbar {
|
||||||
start_y: y,
|
start_y: y,
|
||||||
start_scroll: editor.buffer().scroll(),
|
start_scroll: editor.buffer().scroll(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue