private boolean handleMoveEvent(final NiftyMouseInputEvent mouseEvent) {
if (mouseEvent.getMouseX() != lastMouseX ||
mouseEvent.getMouseY() != lastMouseY) {
lastMouseX = mouseEvent.getMouseX();
lastMouseY = mouseEvent.getMouseY();
nifty.publishEvent(element.getId(), new NiftyMouseMovedEvent(element, mouseEvent));
return true;
}
return false;
}