Skip to content

Commit 9d81acb

Browse files
committed
Remove scrolling workaround for Windows 10
The bug (#172) 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 9d81acb

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/input/scroll.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -332,15 +332,9 @@ static int set_arrow_input(key *arrow, const key *opposite_arrow, float *modifie
332332

333333
static int get_direction(const mouse *m)
334334
{
335-
int is_inside_window = m->is_inside_window;
336335
int width = screen_width();
337336
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-
}
343-
if (!is_inside_window && !m->is_touch) {
337+
if (!m->is_inside_window && !m->is_touch) {
344338
return DIR_8_NONE;
345339
}
346340
int top = 0;

0 commit comments

Comments
 (0)