user32: Fix tracking position for non-client scrollbars.
commitd2cf3e976370723cd009acafdc842fdcd2cb4b9d
authorGabriel Ivăncescu <gabrielopcode@gmail.com>
Tue, 11 Dec 2018 12:00:06 +0000 (11 14:00 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 12 Dec 2018 16:30:16 +0000 (12 17:30 +0100)
tree9ba7ee592596b4d6ff085db1e0d4aee3de3c7085
parent9cd29b325fa4456123284b6471967e82af47beb9
user32: Fix tracking position for non-client scrollbars.

Non-client scrollbars (SB_HORZ and SB_VERT) don't have their client origin at
(0,0) because they can have non-client borders. It is necessary to offset
by this origin just as it is done for LBUTTONDOWN.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/user32/scroll.c