mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-02 21:26:33 +02:00
fix: unable to horizontally scroll when pull to refresh is enabled (#16273)
This commit is contained in:
@@ -69,13 +69,13 @@ function getScreenY(event: TouchEvent | MouseEvent | PointerEvent): number {
|
||||
function lockDownScroll() {
|
||||
if (scrollEl == null) return;
|
||||
scrollEl.style.touchAction = 'pan-x pan-down pinch-zoom';
|
||||
scrollEl.style.overscrollBehavior = 'none';
|
||||
scrollEl.style.overscrollBehavior = 'auto none';
|
||||
}
|
||||
|
||||
function unlockDownScroll() {
|
||||
if (scrollEl == null) return;
|
||||
scrollEl.style.touchAction = 'auto';
|
||||
scrollEl.style.overscrollBehavior = 'contain';
|
||||
scrollEl.style.overscrollBehavior = 'auto contain';
|
||||
}
|
||||
|
||||
function moveStartByMouse(event: MouseEvent) {
|
||||
|
||||
Reference in New Issue
Block a user