private void setCurrentRotation(double value) {
int pi = getCurrentPhotoIndex();
currentRotation = Utils.modulus(value, photos.size());
setCurrentPhotoIndex((int)Math.round(currentRotation));
if (pi != getCurrentPhotoIndex()) {
PhotoToFrontEvent event = new PhotoToFrontEvent();
event.setPhoto(photos.get(getCurrentPhotoIndex()));
event.setPhotoIndex(getCurrentPhotoIndex());
fireEvent(event);
}
placeImages();
}