We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a3b889 commit 46116e1Copy full SHA for 46116e1
1 file changed
js/widget.js
@@ -176,13 +176,8 @@ async function render({ model, el }) {
176
const zoomEnabled = model.get("enable_zoom");
177
178
if (freezeScroll) {
179
- // Disable only scroll and zoom
+ // Disable only scroll wheel zoom, but keep drag functionality
180
svg.on("wheel.zoom", null); // Disable scroll wheel zoom
181
- svg.on("mousedown.zoom", null); // Disable zoom on mousedown
182
- svg.on("touchstart.zoom", null); // Disable zoom on touchstart
183
- svg.on("touchmove.zoom", null); // Disable zoom on touchmove
184
- svg.on("touchend.zoom", null); // Disable zoom on touchend
185
- svg.on("touchcancel.zoom", null); // Disable zoom on touchcancel
186
} else {
187
// Re-enable zoom if not frozen and zoom is enabled
188
if (zoomEnabled) {
0 commit comments