Cherrypick from sharkey fixes
All checks were successful
Lint / pnpm_install (pull_request) Successful in 2m34s
Test (frontend) / vitest (22.x) (pull_request) Successful in 3m38s
Test (production install and build) / production (22.x) (pull_request) Successful in 3m3s
Lint / lint (backend) (pull_request) Successful in 3m16s
Lint / lint (misskey-js) (pull_request) Successful in 4m5s
Lint / lint (sw) (pull_request) Successful in 3m47s
Lint / lint (frontend) (pull_request) Successful in 9m54s
Lint / typecheck (misskey-js) (pull_request) Successful in 2m50s
Lint / typecheck (backend) (pull_request) Successful in 5m36s
All checks were successful
Lint / pnpm_install (pull_request) Successful in 2m34s
Test (frontend) / vitest (22.x) (pull_request) Successful in 3m38s
Test (production install and build) / production (22.x) (pull_request) Successful in 3m3s
Lint / lint (backend) (pull_request) Successful in 3m16s
Lint / lint (misskey-js) (pull_request) Successful in 4m5s
Lint / lint (sw) (pull_request) Successful in 3m47s
Lint / lint (frontend) (pull_request) Successful in 9m54s
Lint / typecheck (misskey-js) (pull_request) Successful in 2m50s
Lint / typecheck (backend) (pull_request) Successful in 5m36s
This commit is contained in:
parent
9dbb4124da
commit
5c6cfd735e
1 changed files with 6 additions and 0 deletions
|
@ -170,6 +170,12 @@ onMounted(() => {
|
||||||
pswp.on('change', () => {
|
pswp.on('change', () => {
|
||||||
textBox.textContent = pswp.currSlide?.data.comment;
|
textBox.textContent = pswp.currSlide?.data.comment;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// `passive: true` is for Safari compatibility, apparently
|
||||||
|
const stopEvent = name => textBox.addEventListener(name, event => event.stopPropagation(), { passive: true });
|
||||||
|
stopEvent('wheel');
|
||||||
|
stopEvent('pointerdown');
|
||||||
|
stopEvent('pointercancel');
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue