FIX: Do not override mobile scroll on docked progress element (#15840)

This commit is contained in:
Penar Musaraj 2022-02-07 13:51:07 +01:00 committed by GitHub
parent 404f882e5c
commit 45c00c72bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -163,6 +163,10 @@ export default Component.extend(PanEvents, {
},
panStart(e) {
if (e.originalEvent.target.classList.contains("docked")) {
return;
}
e.originalEvent.preventDefault();
const center = e.center;
const $centeredElement = $(document.elementFromPoint(center.x, center.y));