aboutsummaryrefslogtreecommitdiff
path: root/common/platform.h
diff options
context:
space:
mode:
authorOri Avtalion2016-03-23 21:24:43 +0200
committerOri Avtalion2016-03-27 23:29:37 +0300
commit031e062252d00fc7e6d930287b6dbd4a845d2a2f (patch)
tree2ba4d9ab80f92e917b761b771c6b138100d07ebc /common/platform.h
parentc5b8adb370d9d707aee4b00cf1c711dcd7419d17 (diff)
downloadscummvm-rg350-031e062252d00fc7e6d930287b6dbd4a845d2a2f.tar.gz
scummvm-rg350-031e062252d00fc7e6d930287b6dbd4a845d2a2f.tar.bz2
scummvm-rg350-031e062252d00fc7e6d930287b6dbd4a845d2a2f.zip
GUI: Improve handling of button presses while moving the cursor
Keep track of where a mouse press started when deciding how mouse-over and mouse-up should behave. This handles the following situations: 1) If a mouse press starts outside a button (e.g. the UI background), mouse-up inside the button has no effect. Previously, it triggered a button click. 2) If a mouse press starts inside a button, the cursor moves outside of its region, then back inside, the button will show as pressed. Previously, it showed as highlighted instead of pressed.
Diffstat (limited to 'common/platform.h')
0 files changed, 0 insertions, 0 deletions