Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manual zoom level #517

Merged
merged 15 commits into from
Oct 31, 2023
8 changes: 4 additions & 4 deletions src/js/views/right_panel_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -631,11 +631,11 @@
min: 100,
value: self.zoom_avg,
slide: function(event, ui) {
self.update_img_css(ui.value, 0, 0);
$('#vp_zoom_value').val(ui.value);
self.update_img_css(parseInt(ui.value), 0, 0);
$('#vp_zoom_value').val(parseInt(ui.value));
},
stop: function( event, ui ) {
self.zoom_avg = ui.value;
self.zoom_avg = parseInt(ui.value);
will-moore marked this conversation as resolved.
Show resolved Hide resolved
var to_save = {'zoom': ui.value};
if (ui.value === 100) {
to_save.dx = 0;
Expand Down Expand Up @@ -714,7 +714,7 @@
}

// get the current entered value
var value = event.target.value;
var value = parseInt(event.target.value);
if (isNaN(value)) {
return;
}
Expand Down