Set rotation angle for the initial rotate gesture event in MSW

According to MSDN, for the initial rotation even the angle is just
passed directly, so use it.
This commit is contained in:
Vadim Zeitlin
2017-11-21 17:27:42 +01:00
parent b3e726faed
commit db71a10b29

View File

@@ -5742,7 +5742,11 @@ bool wxWindowMSW::HandleRotateGesture(int x, int y,
// wxEVT_GESTURE_ROTATE
wxRotateGestureEvent event(GetId());
if ( !InitGestureEvent(event, x, y, flags) )
if ( InitGestureEvent(event, x, y, flags) )
{
event.SetRotationAngle(angleArgument);
}
else // Not the first event.
{
// Use angleArgument to obtain the cumulative angle since the gesture
// was first started. This angle is in radians and MSW returns negative