mirror of
https://github.com/Immediate-Mode-UI/Nuklear.git
synced 2026-11-30 16:48:10 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user