Skip to content

Home Information - Your home, your data, organized.

Python

Fixed bug in javascript SVG location zoom.

Anthony Cassandra67c6825ecd1c
diff --git a/src/hi/static/js/svg-location.js b/src/hi/static/js/svg-location.js
index 3cbbe3b5..49397b4f 100644
--- a/src/hi/static/js/svg-location.js
+++ b/src/hi/static/js/svg-location.js
@@ -352,9 +352,9 @@
const e = event.originalEvent;
// Immediately update the visual
- let scaleFactor = 1.0 + ( MOUSE_WHEEL_ZOOM_SCALE_FACTOR_PERCENT / 100.0 );
+ let scaleFactor = 1.0 - ( MOUSE_WHEEL_ZOOM_SCALE_FACTOR_PERCENT / 100.0 );
if ( e.deltaY > 0 ) {
- scaleFactor = 1.0 - ( MOUSE_WHEEL_ZOOM_SCALE_FACTOR_PERCENT / 100.0 );
+ scaleFactor = 1.0 + ( MOUSE_WHEEL_ZOOM_SCALE_FACTOR_PERCENT / 100.0 );
}
zoom( scaleFactor );
saveSvgGeometryDebouncer();