]> git.mxchange.org Git - simgear.git/commit
Canvas: fix position for drag events and multiclick handling.
authorThomas Geymayer <tomgey@gmail.com>
Sat, 15 Mar 2014 13:39:23 +0000 (14:39 +0100)
committerThomas Geymayer <tomgey@gmail.com>
Sat, 15 Mar 2014 13:53:08 +0000 (14:53 +0100)
commitf28e3fc9bbbdade41053e024bbbc9d49cb7202f4
tree1228ddcf71c8d5f90f4f808758efb4a398f92189
parent80e77b837291dc60ac0077cea338f2cf9b68cb6f
Canvas: fix position for drag events and multiclick handling.

 - Calculate local/client position for every drag event
   instead of just reporting the position of the initial
   mousedown event.
 - Only pressing the same button multiple times increases
   the mouse clickcount.
simgear/canvas/Canvas.cxx
simgear/canvas/CanvasEventManager.cxx
simgear/canvas/CanvasEventManager.hxx
simgear/canvas/CanvasEventVisitor.cxx
simgear/canvas/CanvasEventVisitor.hxx
simgear/canvas/elements/CanvasElement.cxx
simgear/canvas/elements/CanvasElement.hxx