Skip to content

Commit d831016

Browse files
committed
Remove scrolling workaround for Windows 10
The bug was caused by Windows not considering the leftmost or bottommost pixel part of the window in fullscreen mode. We now always grab the mouse in fullscreen mode, so the mouse never leaves the window.
1 parent 2a8bf51 commit d831016

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/input/scroll.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -335,11 +335,6 @@ static int get_direction(const mouse *m)
335335
int is_inside_window = m->is_inside_window;
336336
int width = screen_width();
337337
int height = screen_height();
338-
if (setting_fullscreen() && m->x < width && m->y < height) {
339-
// For Windows 10, in fullscreen mode, on HiDPI screens, this is needed
340-
// to get scrolling to work
341-
is_inside_window = 1;
342-
}
343338
if (!is_inside_window && !m->is_touch) {
344339
return DIR_8_NONE;
345340
}

0 commit comments

Comments
 (0)