Browse Source

Remove check for scrollable parent

pull/243/head
Jānis Skarnelis 3 years ago
parent
commit
9215e51bf1
  1. 5
      src/Panzoom/Panzoom.js

5
src/Panzoom/Panzoom.js

@ -4,7 +4,6 @@ import { round } from "../shared/utils/round.js";
import { ResizeObserver } from "../shared/utils/ResizeObserver.js";
import { PointerTracker, getMidpoint, getDistance } from "../shared/utils/PointerTracker.js";
import { isScrollable } from "../shared/utils/isScrollable.js";
import { getTextNodeFromPoint } from "../shared/utils/getTextNodeFromPoint.js";
import { getFullWidth, getFullHeight, calculateAspectRatioFit } from "../shared/utils/getDimensions.js";
@ -364,10 +363,6 @@ export class Panzoom extends Base {
if (this.option("textSelection") && getTextNodeFromPoint(event.target, event.clientX, event.clientY)) {
return false;
}
// Allow scrolling
if (isScrollable(event.target)) {
return false;
}
}
if (this.trigger("touchStart", event) === false) {

Loading…
Cancel
Save