mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Zoom on mousewheel only if zoom is enabled
This commit is contained in:
@ -130,7 +130,7 @@
|
||||
/**
|
||||
* Update the zoom level of the map on mousewheel
|
||||
*/
|
||||
options.map.zoom.mousewheel && $self.on("mousewheel", function(e) {
|
||||
options.map.zoom.enabled && options.map.zoom.mousewheel && $self.on("mousewheel", function(e) {
|
||||
var offset = $self.offset(),
|
||||
initFactor = (options.map.width) ? ($.fn.mapael.maps[options.map.name].width / options.map.width) : ($.fn.mapael.maps[options.map.name].width / $self.width())
|
||||
, zoomLevel = (e.deltaY > 0) ? 1 : -1
|
||||
|
Reference in New Issue
Block a user