Fixed copy & paste bug in scrollbar implementation

It should now be possible to just click on one of the empty spaces
inside scrollbars to jump one window frame down or up.
This commit is contained in:
vurtun 2016-06-15 21:34:49 +02:00
parent b020c332d0
commit 758d9c405a
1 changed files with 2 additions and 2 deletions

View File

@ -12561,7 +12561,7 @@ nk_do_scrollbarv(nk_flags *state,
empty_north.x = scroll.x;
empty_north.y = scroll.y;
empty_north.w = scroll.w;
empty_north.h = cursor.x - scroll.w;
empty_north.h = cursor.y - scroll.y;
empty_south.x = scroll.x;
empty_south.y = cursor.y + cursor.h;
@ -12649,7 +12649,7 @@ nk_do_scrollbarh(nk_flags *state,
/* calculate empty space around cursor */
empty_west.x = scroll.x;
empty_west.y = scroll.y;
empty_west.w = cursor.y - scroll.y;
empty_west.w = cursor.x - scroll.x;
empty_west.h = scroll.h;
empty_east.x = cursor.x + cursor.w;