mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-03-31 12:13:04 -04:00
Merge pull request #4135 from IgorA100/patch-184549
Fix: When executing "setTouchAction: function(el)" check if the element is passed to the function (panzoom.js)
This commit is contained in:
@@ -175,6 +175,7 @@ var zmPanZoom = {
|
||||
},
|
||||
|
||||
setTouchAction: function(el) {
|
||||
if (!el) return;
|
||||
const currentScale = el.getScale().toFixed(1);
|
||||
if (currentScale == 1) {
|
||||
el.setOptions({touchAction: 'manipulation'});
|
||||
|
||||
Reference in New Issue
Block a user