1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

iOS: Fixes #7469: Note viewer inertial scroll is slower than native inertial scrolling (#7470)

This commit is contained in:
Henry Heino 2022-12-22 04:15:20 -08:00 committed by GitHub
parent 3453240833
commit e9e7a1d0df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -145,6 +145,16 @@ export default function useSource(noteBody: string, noteMarkupLanguage: number,
font: -apple-system-body;
}
}
/*
iOS seems to increase inertial scrolling friction when the WebView body/root elements
scroll. Scroll the main container instead.
*/
body > #rendered-md {
width: 100vw;
height: 100vh;
overflow: auto;
}
`;
html =