working out issues with mouse wheel (#1461)

This commit is contained in:
Ben Fry
2013-04-30 22:31:34 -04:00
parent 9a6b1dcdb6
commit ce298ef00b
4 changed files with 50 additions and 20 deletions

View File

@@ -3289,15 +3289,15 @@ public class PGL {
}
}
float peAmount = peAction == MouseEvent.WHEEL ?
nativeEvent.getWheelRotation() :
int peCount = peAction == MouseEvent.WHEEL ?
(int) nativeEvent.getWheelRotation() :
nativeEvent.getClickCount();
MouseEvent me = new MouseEvent(nativeEvent, nativeEvent.getWhen(),
peAction, peModifiers,
nativeEvent.getX(), nativeEvent.getY(),
peButton,
peAmount);
peCount);
pg.parent.postEvent(me);
}