diff --git a/library.properties b/library.properties index 0867fb1..3b87f99 100644 --- a/library.properties +++ b/library.properties @@ -3,7 +3,7 @@ authors = [Jonathan Feinberg](http://mrfeinberg.com/) url = http://mrfeinberg.com/peasycam/ categories = 3D sentence = A mouse driven camera-control library for 3D sketches. -version = 202 -prettyVersion = 202 +version = 301 +prettyVersion = 301 minRevision = 227 maxRevision = 0 diff --git a/src/peasy/PeasyCam.java b/src/peasy/PeasyCam.java index edc33cf..5c025ee 100644 --- a/src/peasy/PeasyCam.java +++ b/src/peasy/PeasyCam.java @@ -37,7 +37,7 @@ */ public class PeasyCam { - public final String VERSION = "210"; + public final String VERSION = "301"; private static final Vector3D LOOK = Vector3D.plusK; private static final Vector3D UP = Vector3D.plusJ; @@ -334,7 +334,7 @@ public void mouseEvent(final MouseEvent e) { break; case MouseEvent.WHEEL: - if (insideViewport(p.mouseX, p.mouseY)) { + if (wheelHandler != null && insideViewport(p.mouseX, p.mouseY)) { wheelHandler.handleWheel((int)e.getCount()); } break;