mirror of
https://github.com/processing/processing4.git
synced 2026-02-22 06:45:39 +01:00
working out issues with mouse wheel (#1461)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user