Skip to content

Commit

Permalink
replaced update zoom
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario-S committed Nov 9, 2013
1 parent 4c522ac commit 7d6828d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/main/java/jfxtras/labs/map/ZoomInButtonFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ protected EventHandler<ActionEvent> getEventHandler() {
@Override
public void handle(ActionEvent e) {
int val = zoomable.zoomProperty().get();
zoomable.updateZoom(val + 1);
//zoomable.updateZoom(val + 1);
zoomable.zoomProperty().set(val + 1);
}
};
}
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/jfxtras/labs/map/ZoomOutButtonFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ protected EventHandler<ActionEvent> getEventHandler() {
@Override
public void handle(ActionEvent e) {
int val = zoomable.zoomProperty().get();
zoomable.updateZoom(val - 1);
// zoomable.updateZoom(val - 1);
zoomable.zoomProperty().set(val - 1);
}
};
}
Expand Down

0 comments on commit 7d6828d

Please sign in to comment.